Land #3758, nil deref fix for iax2/call.rb
commit
422d6bd2e4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue