diff options
| author | 2016-11-29 10:22:30 +0000 | |
|---|---|---|
| committer | 2016-11-29 10:22:30 +0000 | |
| commit | d03b33115bbcee28ec1dddca742f0e2b8bb58968 (patch) | |
| tree | 57683ff86d1d0885c73e6edc7796923424b5e3e4 /sys/net/rtsock.c | |
| parent | Remove debugging code that was always enabled and printed parsed (diff) | |
| download | wireguard-openbsd-d03b33115bbcee28ec1dddca742f0e2b8bb58968.tar.xz wireguard-openbsd-d03b33115bbcee28ec1dddca742f0e2b8bb58968.zip | |
m_free() and m_freem() test for NULL. Simplify callers which had their own
NULL tests.
ok mpi@
Diffstat (limited to 'sys/net/rtsock.c')
| -rw-r--r-- | sys/net/rtsock.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 8953a30a60b..b6dc80aadde 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.209 2016/11/21 09:09:06 mpi Exp $ */ +/* $OpenBSD: rtsock.c,v 1.210 2016/11/29 10:22:30 jsg Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -272,8 +272,7 @@ route_ctloutput(int op, struct socket *so, int level, int optname, error = ENOPROTOOPT; break; } - if (m) - m_free(m); + m_free(m); break; case PRCO_GETOPT: switch (optname) { |
