diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-26 19:11:24 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-26 19:11:24 +0000 | 
| commit | d02c951f8ec631d059ec7a8addb8a104cd160280 (patch) | |
| tree | 95a3b1baea805cde74e09666d77a5b9f11d95aff /sys/netipsec/ipsec_output.c | |
| parent | d8866befb86698415f5ef82446c22f6da5fb2bd9 (diff) | |
| parent | b5617df55b52e1be5b9f07bf00ac345f304c2497 (diff) | |
Notes
Diffstat (limited to 'sys/netipsec/ipsec_output.c')
| -rw-r--r-- | sys/netipsec/ipsec_output.c | 8 | 
1 files changed, 0 insertions, 8 deletions
| diff --git a/sys/netipsec/ipsec_output.c b/sys/netipsec/ipsec_output.c index 392008e91978..80b6ab8300b1 100644 --- a/sys/netipsec/ipsec_output.c +++ b/sys/netipsec/ipsec_output.c @@ -273,10 +273,6 @@ ipsec4_perform_request(struct mbuf *m, struct secpolicy *sp, u_int idx)  		goto bad;  	}  	error = (*sav->tdb_xform->xf_output)(m, sp, sav, idx, i, off); -	if (error != 0) { -		key_freesav(&sav); -		key_freesp(&sp); -	}  	return (error);  bad:  	IPSECSTAT_INC(ips_out_inval); @@ -581,10 +577,6 @@ ipsec6_perform_request(struct mbuf *m, struct secpolicy *sp, u_int idx)  		goto bad;  	}  	error = (*sav->tdb_xform->xf_output)(m, sp, sav, idx, i, off); -	if (error != 0) { -		key_freesav(&sav); -		key_freesp(&sp); -	}  	return (error);  bad:  	IPSEC6STAT_INC(ips_out_inval); | 
