diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2002-06-18 22:26:13 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2002-06-18 22:26:13 +0000 |
commit | 0844b008655d714d96bb2a0a70156cbb545c7153 (patch) | |
tree | b600985aaf1227bae43c5672bc5c3b2ec4e951d1 /sys/netinet | |
parent | 0f59a6e024f879320a80c410fa991ca98f7fdf13 (diff) |
Missing freeing of crp, from sam@errno.com
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_ipcomp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_ipcomp.c b/sys/netinet/ip_ipcomp.c index 65004517da0..38a8e1fc85e 100644 --- a/sys/netinet/ip_ipcomp.c +++ b/sys/netinet/ip_ipcomp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipcomp.c,v 1.3 2002/06/18 19:28:05 angelos Exp $ */ +/* $OpenBSD: ip_ipcomp.c,v 1.4 2002/06/18 22:26:12 angelos Exp $ */ /* * Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org) @@ -655,10 +655,10 @@ ipcomp_output_cb(cp) splx(s); return crypto_dispatch(crp); } + ipcompstat.ipcomps_noxform++; DPRINTF(("ipcomp_output_cb(): crypto error %d\n", crp->crp_etype)); - goto baddone; } /* Shouldn't happen... */ @@ -680,7 +680,6 @@ ipcomp_output_cb(cp) } /* Adjust the length in the IP header. */ - switch (tdb->tdb_dst.sa.sa_family) { #ifdef INET case AF_INET: @@ -697,11 +696,12 @@ ipcomp_output_cb(cp) #endif /* INET6 */ default: + m_freem(m); DPRINTF(("ipcomp_output(): unknown/unsupported protocol " "family %d, IPCA %s/%08x\n", tdb->tdb_dst.sa.sa_family, ipsp_address(tdb->tdb_dst), ntohl(tdb->tdb_spi))); - m_freem(m); + crypto_freereq(crp); ipcompstat.ipcomps_nopf++; return EPFNOSUPPORT; break; |