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
This commit is contained in:
Mark Johnston
2025-01-06 23:20:08 +00:00
parent 872686b17e
commit 378a2b155a
+1 -1
View File
@@ -2595,7 +2595,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);
}
/*