git: f84cdc258430 - main - pfsync: use result of m_pullup()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Oct 2026 04:52:48 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=f84cdc2584305f8b656ce3f3746868c4a58a9a82
commit f84cdc2584305f8b656ce3f3746868c4a58a9a82
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-10-15 04:50:41 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-10-15 04:50:41 +0000
pfsync: use result of m_pullup()
---
sys/netpfil/pf/if_pfsync.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
index b2b6217f530d..768e151e766a 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -979,7 +979,7 @@ pfsync_input(struct mbuf **mp, int *offp __unused, int proto __unused)
}
if (offset + sizeof(*ph) > m->m_len) {
- if (m_pullup(m, offset + sizeof(*ph)) == NULL) {
+ if ((m = m_pullup(m, offset + sizeof(*ph))) == NULL) {
V_pfsyncstats.pfsyncs_hdrops++;
return (IPPROTO_DONE);
}
@@ -1082,7 +1082,7 @@ pfsync6_input(struct mbuf **mp, int *offp __unused, int proto __unused)
}
if (offset + sizeof(*ph) > m->m_len) {
- if (m_pullup(m, offset + sizeof(*ph)) == NULL) {
+ if ((m = m_pullup(m, offset + sizeof(*ph))) == NULL) {
V_pfsyncstats.pfsyncs_hdrops++;
return (IPPROTO_DONE);
}