1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

sys/posix/socket: use explicit bind

implicit bind would lead to StoreProhibitedCause on esp32
This commit is contained in:
Hendrik van Essen 2021-06-16 19:41:51 +02:00
parent 633dc78fa2
commit e4bd2c5ffe

View File

@ -1037,8 +1037,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;
}
}