From 0870c7c32cf8a24f234fc066df867747ddb1ddc7 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 13 Nov 2012 15:01:43 +0100 Subject: [PATCH] Don't take the address of a variable whose scope is about to disappear. --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_packet.c b/src/net_packet.c index dc31fd7a..5290fd6b 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -536,11 +536,11 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt) { sockaddr_t *sa; int sock; + sockaddr_t broadcast; /* Overloaded use of priority field: -1 means local broadcast */ if(origpriority == -1 && n->prevedge) { - sockaddr_t broadcast; broadcast.in.sin_family = AF_INET; broadcast.in.sin_addr.s_addr = -1; broadcast.in.sin_port = n->prevedge->address.in.sin_port; -- 2.20.1