diff options
author | 2015-05-13 10:42:46 +0000 | |
---|---|---|
committer | 2015-05-13 10:42:46 +0000 | |
commit | 64a3f76c072dd81169df444ff036aa23170dc855 (patch) | |
tree | db48aba5bb3c00b3a39e7e31fd32bbec39bd06f6 /sys/netinet/tcp_input.c | |
parent | Get rid of the last "#if NTRUNK" by overwriting trunk ports' output (diff) | |
download | wireguard-openbsd-64a3f76c072dd81169df444ff036aa23170dc855.tar.xz wireguard-openbsd-64a3f76c072dd81169df444ff036aa23170dc855.zip |
test mbuf pointers against NULL not 0
ok krw@ miod@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 04a32d0cbcf..9e9ba4f1a91 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.289 2015/04/16 19:24:13 markus Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.290 2015/05/13 10:42:46 jsg Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -2850,7 +2850,7 @@ tcp_pulloutofband(struct socket *so, u_int urgent, struct mbuf *m, int off) } cnt -= m->m_len; m = m->m_next; - if (m == 0) + if (m == NULL) break; } panic("tcp_pulloutofband"); |