summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtadvd/if.c
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-12-11 20:15:52 +0000
committermmcc <mmcc@openbsd.org>2015-12-11 20:15:52 +0000
commit85fc22730c12ceb0f5585eb2f74fe7ba8ad4777c (patch)
treecd0e48dc741b393593869adf0e67892925b65f2f /usr.sbin/rtadvd/if.c
parentremove no longer needed prototype (diff)
downloadwireguard-openbsd-85fc22730c12ceb0f5585eb2f74fe7ba8ad4777c.tar.xz
wireguard-openbsd-85fc22730c12ceb0f5585eb2f74fe7ba8ad4777c.zip
Remove NULL-checks before free().
Diffstat (limited to 'usr.sbin/rtadvd/if.c')
-rw-r--r--usr.sbin/rtadvd/if.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/rtadvd/if.c b/usr.sbin/rtadvd/if.c
index a1a2e221c10..0b68beebffe 100644
--- a/usr.sbin/rtadvd/if.c
+++ b/usr.sbin/rtadvd/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.34 2015/12/01 12:11:31 jca Exp $ */
+/* $OpenBSD: if.c,v 1.35 2015/12/11 20:15:52 mmcc Exp $ */
/* $KAME: if.c,v 1.17 2001/01/21 15:27:30 itojun Exp $ */
/*
@@ -503,8 +503,7 @@ init_iflist(void)
free(ifblock);
ifblock_size = 0;
}
- if (iflist)
- free(iflist);
+ free(iflist);
/* get iflist block from kernel */
get_iflist(&ifblock, &ifblock_size);