summaryrefslogtreecommitdiff
path: root/sys/netinet/raw_ip.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-15 15:46:41 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-15 15:46:41 +0000
commit99d628d577710a8236fd8cfca76bad9eb43b22c8 (patch)
tree4a79a438a4050cb2587d8b164209b03fac85a9d6 /sys/netinet/raw_ip.c
parent915c6043b06c1ef2afd4660e18a18d0ed434333d (diff)
downloadsrc-test2-99d628d577710a8236fd8cfca76bad9eb43b22c8.tar.gz
src-test2-99d628d577710a8236fd8cfca76bad9eb43b22c8.zip
Notes
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r--sys/netinet/raw_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 9f29444cb712..8de3108c8a98 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -1046,7 +1046,7 @@ rip_pcblist(SYSCTL_HANDLER_ARGS)
return (error);
inp_list = malloc(n * sizeof *inp_list, M_TEMP, M_WAITOK);
- if (inp_list == 0)
+ if (inp_list == NULL)
return (ENOMEM);
INP_INFO_RLOCK(&V_ripcbinfo);