Skip to content

Commit af24e30

Browse files
author
HD Moore
committed
Return instead of crashing if no challenge is received
1 parent 7d942be commit af24e30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/rex/proto/iax2/call.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ def register
7777
chall = res[2][IAX_IE_CHALLENGE_DATA]
7878
end
7979

80+
if chall.nil?
81+
dprint("REGAUTH: No challenge data received")
82+
return
83+
end
84+
8085
self.client.send_regreq_chall_response(self, chall)
8186
res = wait_for( IAX_SUBTYPE_REGACK, IAX_SUBTYPE_REGREJ )
8287
return if not res

0 commit comments

Comments
 (0)