diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-07-15 22:16:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-07-15 22:16:43 +0000 |
commit | 5e8589374c930031aaf4735e952691c378a260b8 (patch) | |
tree | 158957edef63bb7cac587a2b4370754b04559bae /sys/netinet/ip_ipcomp.c | |
parent | a763f70dd81e802e555963fb255d7538e879b607 (diff) |
m_freem() can handle NULL, do not check for this condition beforehands.
ok stsp mpi
Diffstat (limited to 'sys/netinet/ip_ipcomp.c')
-rw-r--r-- | sys/netinet/ip_ipcomp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet/ip_ipcomp.c b/sys/netinet/ip_ipcomp.c index 111fdf96acd..fd7c49739ae 100644 --- a/sys/netinet/ip_ipcomp.c +++ b/sys/netinet/ip_ipcomp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipcomp.c,v 1.43 2015/06/15 13:26:48 mikeb Exp $ */ +/* $OpenBSD: ip_ipcomp.c,v 1.44 2015/07/15 22:16:42 deraadt Exp $ */ /* * Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org) @@ -350,8 +350,7 @@ ipcomp_input_cb(struct cryptop *crp) baddone: splx(s); - if (m) - m_freem(m); + m_freem(m); crypto_freereq(crp); @@ -664,8 +663,7 @@ ipcomp_output_cb(struct cryptop *crp) baddone: splx(s); - if (m) - m_freem(m); + m_freem(m); crypto_freereq(crp); |