Skip to content
Commit 271e0c54 authored by Robert Lubos's avatar Robert Lubos Committed by Maureen Helm
Browse files

net: context: Reset peer address on connect with AF_UNSPEC



As per POSIX, for non-connection-mode sockets the peer address should be
reset if AF_UNSPEC family type is provided to the connect() call:

  "If the sa_family member of address is AF_UNSPEC, the socket's peer
   address shall be reset.""

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent b8b04075
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment