]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fr_cap_net_raw: Don't return an error if the capability is already in the effective set
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 1 Jun 2020 15:35:57 +0000 (10:35 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 1 Jun 2020 15:35:57 +0000 (10:35 -0500)
src/lib/util/socket.c

index e48092951cbe11885a0c7a8b5837a2037cc06c2c..845e9dfcc7fbe8345fea9c05f655857d88db12bc 100644 (file)
@@ -1192,6 +1192,12 @@ int fr_cap_net_raw(void)
                        goto skip_cap;
                }
 
+               rcode = 0;
+               cap_net_raw = true;
+       /*
+        *      It's already in the effective set
+        */
+       } else if (state == CAP_SET) {
                rcode = 0;
                cap_net_raw = true;
        }