Remove now unneded KEY_FREESP() for case when ipsec[46]_process_packet()

returns EJUSTRETURN.

Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2015-04-27 01:11:09 +00:00
parent 3d80e82d60
commit 3e92c37f32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282047
2 changed files with 2 additions and 6 deletions

View File

@ -237,9 +237,7 @@ ip_ipsec_output(struct mbuf **m, struct inpcb *inp, int *error)
/* No IPsec processing for this packet. */
}
done:
if (sp != NULL)
KEY_FREESP(&sp);
return 0;
return (0);
reinjected:
return (-1);
bad:

View File

@ -251,9 +251,7 @@ ip6_ipsec_output(struct mbuf **m, struct inpcb *inp, int *error)
/* No IPsec processing for this packet. */
}
done:
if (sp != NULL)
KEY_FREESP(&sp);
return 0;
return (0);
reinjected:
return (-1);
bad: