Remove now unneded KEY_FREESP() for case when ipsec[46]_process_packet()
returns EJUSTRETURN. Sponsored by: Yandex LLC
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user