From: Roy Marples Date: Thu, 11 Sep 2014 12:33:57 +0000 (+0000) Subject: We should always have the flags variable. X-Git-Tag: v6.4.4~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff1acc7ca5ba29e83207a479fefda2a9a8ac47fb;p=thirdparty%2Fdhcpcd.git We should always have the flags variable. --- diff --git a/if-bsd.c b/if-bsd.c index 6c16a5eb..68e6cd20 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -362,9 +362,7 @@ if_readrawpacket(struct interface *ifp, int protocol, else fd = state->raw_fd; - if (flags != NULL) - *flags = 0; /* Not supported on BSD */ - + *flags = 0; for (;;) { if (state->buffer_len == 0) { bytes = read(fd, state->buffer, state->buffer_size);