1
0
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:
Alexandre Abadie 2022-01-05 14:31:52 +01:00 committed by GitHub
commit 3aac469e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}