diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-12-20 14:19:46 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-12-20 14:19:46 +0000 |
| commit | b7413232f63ba15f195c0cc2739517338d2bdd87 (patch) | |
| tree | 5a4ebe9e6fbacac9d38eb8153b988069d829f6a0 /sys/kern | |
| parent | ca10a8d94450254aa3cc0f343cc3fa2234f22efa (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/uipc_sockbuf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index 537f9c867bf8..8ca522c7ebd5 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -640,6 +640,9 @@ sbappendstream_locked(struct sockbuf *sb, struct mbuf *m, int flags) { SOCKBUF_LOCK_ASSERT(sb); + if (m == NULL) + return; + KASSERT(m->m_nextpkt == NULL,("sbappendstream 0")); KASSERT(sb->sb_mb == sb->sb_lastrecord,("sbappendstream 1")); |
