1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc_sock_udp: set source port when aux local is present

This commit is contained in:
Benjamin Valentin 2024-01-15 23:10:42 +01:00
parent 52350852cc
commit 42754b58ea

View File

@ -423,6 +423,7 @@ ssize_t sock_udp_sendv_aux(sock_udp_t *sock,
if ((aux != NULL) && (aux->flags & SOCK_AUX_SET_LOCAL)) {
local.family = aux->local.family;
local.netif = aux->local.netif;
src_port = aux->local.port;
memcpy(&local.addr, &aux->local.addr, sizeof(local.addr));
aux->flags &= ~SOCK_AUX_SET_LOCAL;