The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=141b6645204966a0e1ae10dd059c670e2a58e6e1
commit 141b6645204966a0e1ae10dd059c670e2a58e6e1 Author: Giuseppe Lettieri <[email protected]> AuthorDate: 2026-07-13 12:24:16 +0000 Commit: Jose Luis Duran <[email protected]> CommitDate: 2026-07-13 12:24:16 +0000 libnetmap: fix extra indirection in nmreq_remove_option Reviewed by: zlei, vmaffione Obtained from: https://github.com/luigirizzo/netmap/commit/7d9177ed9a121e66bf4eaa0acb5d574e408297da MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D58151 --- lib/libnetmap/nmreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libnetmap/nmreq.c b/lib/libnetmap/nmreq.c index 2477337d8791..a083099f0a12 100644 --- a/lib/libnetmap/nmreq.c +++ b/lib/libnetmap/nmreq.c @@ -615,7 +615,7 @@ nmreq_remove_option(struct nmreq_header *h, struct nmreq_option *o) for (nmo = (struct nmreq_option **)&h->nr_options; *nmo != NULL; nmo = (struct nmreq_option **)&(*nmo)->nro_next) { if (*nmo == o) { - *((uint64_t *)(*nmo)) = o->nro_next; + *((uint64_t *)nmo) = o->nro_next; o->nro_next = (uint64_t)(uintptr_t)NULL; break; }
