commit | 998e839d6743c3ae2633e653415a2ae56bb7fb34 | [log] [tgz] |
---|---|---|
author | Mirko Covizzi <mirko.covizzi@nordicsemi.no> | Fri Jan 12 17:21:22 2024 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Mon Jan 15 15:11:57 2024 +0100 |
tree | 0b8a112d9ec7a15dcc2f417e79d448bba9f01b97 | |
parent | 325bc953a89d79ca71b6f8b59ea320bbf78fa656 [diff] |
net: sockets: prevent null pointer dereference According to the POSIX specification, null pointer is a valid value for the `address` argument of the `accept` function. This commit adds a check to prevent a null pointer dereference inside `z_impl_zsock_accept`. Signed-off-by: Mirko Covizzi <mirko.covizzi@nordicsemi.no>