]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - reg.c
iw: fix fd leak inside handle_netns
[thirdparty/iw.git] / reg.c
diff --git a/reg.c b/reg.c
index cadff3884c041c2a9b615701c939771119854929..a2368df390099dec5167c0376a7c884d6aa950a2 100644 (file)
--- a/reg.c
+++ b/reg.c
@@ -243,7 +243,7 @@ static int handle_reg_get(struct nl80211_state *state,
        char *dump_args[] = { "reg", "dump" };
        int err;
 
-       err = handle_cmd(state, CIB_NONE, 2, dump_args);
+       err = handle_cmd(state, II_NONE, 2, dump_args);
        /*
         * dump might fail since it's not supported on older kernels,
         * in that case the handler is still registered already