[PATCH 16/31] udp proxy: Properly zero holes in proxied address

Ian Jackson ijackson at chiark.greenend.org.uk
Sat Sep 20 01:32:11 BST 2014

The comm_addr we are producing here, from information from a packet
forwarded to us by the proxy, is supposed to have all-bits-zero in any
holes it may have.

Signed-off-by: Ian Jackson <ijackson at chiark.greenend.org.uk>
 udp.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/udp.c b/udp.c
index f82acca..b731dc6 100644
--- a/udp.c
+++ b/udp.c
@@ -104,6 +104,7 @@ static void udp_afterpoll(void *state, struct pollfd *fds, int nfds)
 		    /* proxy protocol supports ipv4 transport only */
+		    FILLZERO(from);

More information about the sgo-software-discuss mailing list