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:
parent
633dc78fa2
commit
e4bd2c5ffe
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user