summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_UI.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-06-25 21:11:14 +0000
committerjulian <julian@FreeBSD.org>2004-06-25 21:11:14 +0000
commitcf606d5f29ba03ae7d84a2c5e7458dbfb7db2d36 (patch)
tree64aaf07e387c6e0f8cc1eae22b2a1376c18d7014 /sys/netgraph/ng_UI.c
parent2cf7db632c6326199a2eec3a4d6b3ee8f4acac92 (diff)
downloadFreeBSD-src-cf606d5f29ba03ae7d84a2c5e7458dbfb7db2d36.zip
FreeBSD-src-cf606d5f29ba03ae7d84a2c5e7458dbfb7db2d36.tar.gz
Make the frameworkl responsible for not passing the nodes a NULL mbuf pointer.
this allows the nodes to not test for this.. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Diffstat (limited to 'sys/netgraph/ng_UI.c')
-rw-r--r--sys/netgraph/ng_UI.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_UI.c b/sys/netgraph/ng_UI.c
index f1e16d7..085804f 100644
--- a/sys/netgraph/ng_UI.c
+++ b/sys/netgraph/ng_UI.c
@@ -178,8 +178,8 @@ ng_UI_rcvdata(hook_p hook, item_p item)
if (hook == priv->downlink) {
u_char *start, *ptr;
- if (!m || (m->m_len < MAX_ENCAPS_HDR
- && !(m = m_pullup(m, MAX_ENCAPS_HDR))))
+ if (m->m_len < MAX_ENCAPS_HDR
+ && !(m = m_pullup(m, MAX_ENCAPS_HDR)))
ERROUT(ENOBUFS);
ptr = start = mtod(m, u_char *);
OpenPOWER on IntegriCloud