]> git.ipfire.org Git - thirdparty/nftables.git/commit
json: use strtok_r() instead of strtok()
authorThomas Haller <thaller@redhat.com>
Fri, 18 Aug 2023 14:33:21 +0000 (16:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Sep 2025 20:37:01 +0000 (22:37 +0200)
commitb1620740d372a73d4a9ee95e4b893b3f7cd90828
treee99b7dc92e1383d65ba96ae851dd362c09d347e1
parent0d14d7fa54492da0c43a9ce0be47d691167a5f55
json: use strtok_r() instead of strtok()

commit 4646d656466b1f05bd765bbfb4d6d7bf1529bdbd upstream.

strtok_r() is probably(?) everywhere available where we care.
Use it. It is thread-safe, and libnftables shouldn't make
assumptions about what other threads of the process are doing.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/json.c