git: 57ce5fafdf8c - stable/15 - libnetmap: fix extra indirection in nmreq_remove_option
Jose Luis Duran <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.src |
|---|---|
| Message-ID | <6a66d42d.1e89e.3a4a5ec4__12857.0657035866$1785123913$gmane$org@gitrepo.freebsd.org> |
The branch stable/15 has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=57ce5fafdf8c3a39904ffdf7b4314595fee685ba commit 57ce5fafdf8c3a39904ffdf7b4314595fee685ba Author: Giuseppe Lettieri <[email protected]> AuthorDate: 2026-07-13 12:24:16 +0000 Commit: Jose Luis Duran <[email protected]> CommitDate: 2026-07-27 03:41:08 +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 (cherry picked from commit 141b6645204966a0e1ae10dd059c670e2a58e6e1) --- 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; }