mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
SADB_UPDATE did not return an error when key length is invalid.
Obtained from: KAME
This commit is contained in:
parent
2fa636f5fe
commit
b1a6f1d8a2
1 changed files with 2 additions and 2 deletions
|
|
@ -5055,9 +5055,9 @@ key_update(so, m, mhp)
|
|||
}
|
||||
|
||||
/* check SA values to be mature. */
|
||||
if ((mhp->msg->sadb_msg_errno = key_mature(sav)) != 0) {
|
||||
if ((error = key_mature(sav)) != 0) {
|
||||
key_freesav(sav);
|
||||
return key_senderror(so, m, 0);
|
||||
return key_senderror(so, m, error);
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue