git: 65da23709d20 - stable/14 - netipsec: Pass the right mbuf up

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 20 Jan 2025 00:27:59 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=65da23709d2047c996fb9434e68c2ce90ecdc1bb

commit 65da23709d2047c996fb9434e68c2ce90ecdc1bb
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-01-06 23:20:08 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-01-20 00:26:35 +0000

    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)
---
 sys/netipsec/key.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index 772602eeea90..5458d189c7bf 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -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);
 }
 
 /*