aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Thomas <fabient@FreeBSD.org>2011-03-31 13:14:24 +0000
committerFabien Thomas <fabient@FreeBSD.org>2011-03-31 13:14:24 +0000
commit11d2f4df5071380faa3e2397de1365f4fc6ec232 (patch)
tree7a0004a5dc27916469c5f70db0efcc5b30ff8fc6
parente9e237190bdf17d9aed44c84d7b9f85124ff3c0b (diff)
Notes
-rw-r--r--sys/netipsec/ipsec_output.c1
-rw-r--r--sys/netipsec/xform_ah.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_output.c b/sys/netipsec/ipsec_output.c
index 0907f4575518..7c21d837208a 100644
--- a/sys/netipsec/ipsec_output.c
+++ b/sys/netipsec/ipsec_output.c
@@ -247,7 +247,6 @@ ipsec_process_done(struct mbuf *m, struct ipsecrequest *isr)
panic("ipsec_process_done");
bad:
m_freem(m);
- KEY_FREESAV(&sav);
return (error);
}
diff --git a/sys/netipsec/xform_ah.c b/sys/netipsec/xform_ah.c
index 5701f90f71dc..6a2d3517db96 100644
--- a/sys/netipsec/xform_ah.c
+++ b/sys/netipsec/xform_ah.c
@@ -785,6 +785,7 @@ ah_input_cb(struct cryptop *crp)
sav->tdb_cryptoid = crp->crp_sid;
if (crp->crp_etype == EAGAIN) {
+ KEY_FREESAV(&sav);
error = crypto_dispatch(crp);
return error;
}