Don't take the address of a variable whose scope is about to disappear.
This commit is contained in:
parent
bb3d7f3b31
commit
0870c7c32c
1 changed files with 1 additions and 1 deletions
|
@ -536,11 +536,11 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt) {
|
||||||
|
|
||||||
sockaddr_t *sa;
|
sockaddr_t *sa;
|
||||||
int sock;
|
int sock;
|
||||||
|
sockaddr_t broadcast;
|
||||||
|
|
||||||
/* Overloaded use of priority field: -1 means local broadcast */
|
/* Overloaded use of priority field: -1 means local broadcast */
|
||||||
|
|
||||||
if(origpriority == -1 && n->prevedge) {
|
if(origpriority == -1 && n->prevedge) {
|
||||||
sockaddr_t broadcast;
|
|
||||||
broadcast.in.sin_family = AF_INET;
|
broadcast.in.sin_family = AF_INET;
|
||||||
broadcast.in.sin_addr.s_addr = -1;
|
broadcast.in.sin_addr.s_addr = -1;
|
||||||
broadcast.in.sin_port = n->prevedge->address.in.sin_port;
|
broadcast.in.sin_port = n->prevedge->address.in.sin_port;
|
||||||
|
|
Loading…
Reference in a new issue