X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=udp.c;h=90f8e9a36602b7cc6ff3fb72e7d7852e4e6f14ed;hb=e6647c6ddf1dfaf35b2f70b2d453b63b2ce293e1;hp=33971a8129da6f4a454213e4b49d4a6903cb1f7e;hpb=750c488b451b96f5f76ca20389a3da0ff17f2551;p=secnet.git diff --git a/udp.c b/udp.c index 33971a8..90f8e9a 100644 --- 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);