]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-unixsocket: Fix NULL crash on accept
authorAndrei Tatar <andrei@unikraft.io>
Wed, 25 Sep 2024 14:23:19 +0000 (16:23 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Tue, 25 Feb 2025 09:38:40 +0000 (09:38 +0000)
commit12072b5fa6ef8577fc81b2ab17553a852d99a9a2
tree8c6d784e1a37033f35f6ac2bb71f442304c215e4
parenta81f9ec3c91971109b2bc498ccc2fb80c9e5d4f2
lib/posix-unixsocket: Fix NULL crash on accept

This change fixes a NULL deref when accept() is handed a legal NULL
argument for addr, in which case it should not attempt to output.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
GitHub-Closes: #1593
lib/posix-unixsocket/unixsock.c