Remove now unneded KEY_FREESP() for case when ipsec[46]_process_packet()
returns EJUSTRETURN. Sponsored by: Yandex LLC
This commit is contained in:
parent
3d80e82d60
commit
3e92c37f32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282047
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user