Skip to content

Commit

Permalink
unhandled exception fixed in getTag
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrogauci committed Mar 6, 2020
1 parent 9f71776 commit 5cbb300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sipvicious/libs/svhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from urllib.error import URLError
from urllib.parse import urlencode
from binascii import b2a_hex, a2b_hex
from binascii import Error as b2aerr
from .pptable import to_string

if sys.hexversion < 0x03050000:
Expand Down Expand Up @@ -404,7 +405,7 @@ def getTag(buff):
_tmp2 = _tmp[0][1]
try:
_tmp2 = a2b_hex(_tmp2.strip())
except TypeError:
except (TypeError, b2aerr):
return
if _tmp2.find(b'\x01') > 0:
try:
Expand Down

0 comments on commit 5cbb300

Please sign in to comment.