Skip to content

Commit 422d6bd

Browse files
committed
Land rapid7#3758, nil deref fix for iax2/call.rb
2 parents 7d942be + af24e30 commit 422d6bd

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)