From 5e8589374c930031aaf4735e952691c378a260b8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 15 Jul 2015 22:16:43 +0000 Subject: m_freem() can handle NULL, do not check for this condition beforehands. ok stsp mpi --- sys/netinet/ip_ipcomp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/netinet/ip_ipcomp.c') 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); -- cgit v1.2.3