]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should always have the flags variable.
authorRoy Marples <roy@marples.name>
Thu, 11 Sep 2014 12:33:57 +0000 (12:33 +0000)
committerRoy Marples <roy@marples.name>
Thu, 11 Sep 2014 12:33:57 +0000 (12:33 +0000)
if-bsd.c

index 6c16a5eb08528d42a3c00b4e6a8e76419dfc282f..68e6cd20148e61413f3bd7b0f557a998c8f4323e 100644 (file)
--- 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);