git: 378a2b155aaf - main - netipsec: Pass the right mbuf up

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 06 Jan 2025 23:22:42 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=378a2b155aaf853933df5b53e174b3880826488c

commit 378a2b155aaf853933df5b53e174b3880826488c
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-01-06 23:20:08 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-01-06 23:20:18 +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
---
 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 ad1d6164f158..3c64a65f024d 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -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);
 }
 
 /*