Skip to content

Commit

Permalink
Handle address in use errors
Browse files Browse the repository at this point in the history
  • Loading branch information
elicn committed Jul 2, 2024
1 parent 4371215 commit 6d2818b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiling/os/posix/syscall/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def ql_syscall_bind(ql: Qiling, sockfd: int, addr: int, addrlen: int):

try:
sock.bind(dest)
except (ConnectionError, FileNotFoundError) as ex:
except (OSError, ConnectionError, FileNotFoundError) as ex:
return -ex.errno

return 0
Expand Down

0 comments on commit 6d2818b

Please sign in to comment.