From: Roy Marples Date: Fri, 19 Jun 2015 14:24:12 +0000 (+0000) Subject: Set the BPF memory to zero. X-Git-Tag: v6.9.1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69597f8d5afa5ffffde1d3ef665fdc7b30c5778f;p=thirdparty%2Fdhcpcd.git Set the BPF memory to zero. --- diff --git a/ipv4.c b/ipv4.c index c4a1ebbc..49e0a3ce 100644 --- a/ipv4.c +++ b/ipv4.c @@ -802,6 +802,10 @@ ipv4_getstate(struct interface *ifp) } TAILQ_INIT(&state->addrs); TAILQ_INIT(&state->routes); +#ifdef BSD + state->buffer_size = state->buffer_len = state->buffer_pos = 0; + state->buffer = NULL; +#endif } return state; }