aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>2026-07-13 12:24:16 +0000
committerJose Luis Duran <jlduran@FreeBSD.org>2026-07-13 12:24:16 +0000
commit141b6645204966a0e1ae10dd059c670e2a58e6e1 (patch)
tree458754ab4bc0bdff7d07df6b95247cd98c88a39a
parentfcaf15e54162fe14483fdf4ac28c67c51e424441 (diff)
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
-rw-r--r--lib/libnetmap/nmreq.c2
1 files changed, 1 insertions, 1 deletions
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;
}