mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #16852 from HendrikVE/pr/wolfmqtt_split_4
sys/posix/socket: use explicit bind
This commit is contained in:
commit
3aac469e61
@ -1036,8 +1036,7 @@ static ssize_t socket_sendto(socket_t *s, const void *buffer, size_t length,
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
/* bind implicitly */
|
||||
if ((res = _bind_connect(s, NULL, 0)) < 0) {
|
||||
if ((res = _bind_connect(s, address, address_len)) < 0) {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user