chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
udp proxy: Properly zero holes in proxied address
[secnet.git]
/
udp.c
diff --git
a/udp.c
b/udp.c
index 33971a8129da6f4a454213e4b49d4a6903cb1f7e..90f8e9a36602b7cc6ff3fb72e7d7852e4e6f14ed 100644
(file)
--- a/
udp.c
+++ b/
udp.c
@@
-104,6
+104,7
@@
static void udp_afterpoll(void *state, struct pollfd *fds, int nfds)
continue;
}
/* proxy protocol supports ipv4 transport only */
+ FILLZERO(from);
from.sa.sa_family=AF_INET;
memcpy(&from.sin.sin_addr,buf_unprepend(st->rbuf,4),4);
buf_unprepend(st->rbuf,2);