summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-01-10 09:01:18 +0000
committermpi <mpi@openbsd.org>2017-01-10 09:01:18 +0000
commit89bc1dba9ad97856f086144d8ec7825bce105974 (patch)
tree50b0a530fa2d1b6a76805d7cc97cef6779035d11 /sys/netinet/tcp_usrreq.c
parentHyper-V hosts make 64 bytes of entropy available to guests in the form (diff)
downloadwireguard-openbsd-89bc1dba9ad97856f086144d8ec7825bce105974.tar.xz
wireguard-openbsd-89bc1dba9ad97856f086144d8ec7825bce105974.zip
Remove NULL checks before m_free(9), it deals with it.
ok bluhm@, kettenis@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 39705864219..fca2b4ad67f 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.141 2017/01/03 10:52:21 mpi Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.142 2017/01/10 09:01:18 mpi Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -569,8 +569,7 @@ tcp_ctloutput(int op, struct socket *so, int level, int optname,
error = ENOPROTOOPT;
break;
}
- if (m)
- (void) m_free(m);
+ m_free(m);
break;
case PRCO_GETOPT: