X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udp.c;h=477dea38c7efe47e97ab5f52656fc79c07953509;hb=2093fb5ca832669236d9e4e8b6475a14b96b3d2a;hp=42169221fd03a6760909a7e23fb3ff04b6757756;hpb=a32d56fb47ceff7404072e49a21290fc7314a7c3;p=secnet.git diff --git a/udp.c b/udp.c index 4216922..477dea3 100644 --- a/udp.c +++ b/udp.c @@ -83,7 +83,6 @@ static void udp_afterpoll(void *state, struct pollfd *fds, int nfds) if (nfds && (fds->revents & POLLIN)) { do { - FILLZERO(from); fromlen=sizeof(from); BUF_ASSERT_FREE(st->rbuf); BUF_ALLOC(st->rbuf,"udp_afterpoll"); @@ -110,7 +109,6 @@ static void udp_afterpoll(void *state, struct pollfd *fds, int nfds) memcpy(&from.sin.sin_port,buf_unprepend(st->rbuf,2),2); } struct comm_addr ca; - FILLZERO(ca); ca.comm=&st->ops; ca.ia=from; done=False; @@ -288,7 +286,6 @@ static list_t *udp_apply(closure_t *self, struct cloc loc, dict_t *context, st->ops.release_notify=release_notify; st->ops.sendmsg=udp_sendmsg; st->ops.addr_to_string=addr_to_string; - FILLZERO(st->addr); st->use_proxy=False; i=list_elem(args,0); @@ -306,7 +303,6 @@ 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; - FILLZERO(st->proxy); st->proxy.sa.sa_family=AF_INET; i=list_elem(l,0); if (!i || i->type!=t_string) {