X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=udp.c;fp=udp.c;h=945d1d053749269a67d29d3cecfd8a2a1c8c302c;hb=076bb54e68477f883033bee696c9c5f801ece2f2;hp=7ff4d5fd18f84e5ade3487701484124c55767c9e;hpb=45cfab8ca7db61ce4677e2e77e76b9266c57ab12;p=secnet.git diff --git a/udp.c b/udp.c index 7ff4d5f..945d1d0 100644 --- a/udp.c +++ b/udp.c @@ -194,7 +194,7 @@ static void udp_phase_hook(void *sst, uint32_t new_phase) st->loc.file,st->loc.line); } - memset(&addr, 0, sizeof(addr)); + FILLZERO(addr); addr.sin_family=AF_INET; addr.sin_addr.s_addr=htonl(st->addr); addr.sin_port=htons(st->port); @@ -279,7 +279,7 @@ static list_t *udp_apply(closure_t *self, struct cloc loc, dict_t *context, l=dict_lookup(d,"proxy"); if (l) { st->use_proxy=True; - memset(&st->proxy,0,sizeof(st->proxy)); + FILLZERO(st->proxy); st->proxy.sin_family=AF_INET; i=list_elem(l,0); if (!i || i->type!=t_string) {