Return instead of crashing if no challenge is received

bug/bundler_fix
HD Moore 2014-09-06 15:51:50 -05:00
parent 7d942be715
commit af24e30ae9
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