netipsec: Pass the right mbuf up

Note that key_spdacquire() is dead code, as the SADB_X_SPDACQUIRE
message handler is not set.

PR:		243057
MFC after:	2 weeks

(cherry picked from commit 378a2b155aaf853933df5b53e174b3880826488c)
This commit is contained in:
Mark Johnston 2025-01-06 23:20:08 +00:00
parent 8373644ee2
commit 65da23709d

View file

@ -2519,7 +2519,7 @@ key_spdacquire(struct secpolicy *sp)
mtod(result, struct sadb_msg *)->sadb_msg_len =
PFKEY_UNIT64(result->m_pkthdr.len);
return key_sendup_mbuf(NULL, m, KEY_SENDUP_REGISTERED);
return key_sendup_mbuf(NULL, result, KEY_SENDUP_REGISTERED);
}
/*