Land #3758, nil deref fix for iax2/call.rb

bug/bundler_fix
William Vu 2014-09-06 16:08:32 -05:00
commit 422d6bd2e4
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@ class Call
chall = res[2][IAX_IE_CHALLENGE_DATA]
end
if chall.nil?
dprint("REGAUTH: No challenge data received")
return
end
self.client.send_regreq_chall_response(self, chall)
res = wait_for( IAX_SUBTYPE_REGACK, IAX_SUBTYPE_REGREJ )
return if not res