]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Set the BPF memory to zero.
authorRoy Marples <roy@marples.name>
Fri, 19 Jun 2015 14:24:12 +0000 (14:24 +0000)
committerRoy Marples <roy@marples.name>
Fri, 19 Jun 2015 14:24:12 +0000 (14:24 +0000)
ipv4.c

diff --git a/ipv4.c b/ipv4.c
index c4a1ebbced057adeb981ee95fddd9c3b6f626cd1..49e0a3ced0b5393a54dddfe2387c248734625256 100644 (file)
--- 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;
 }