Uhm yah, not sure who committed this into trunk... Anyway, I think this
authorMark Spencer <markster@digium.com>
Mon, 2 Oct 2006 02:19:04 +0000 (02:19 +0000)
committerMark Spencer <markster@digium.com>
Mon, 2 Oct 2006 02:19:04 +0000 (02:19 +0000)
is what was intended...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44145 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index ae8a56b..d1e930f 100644 (file)
@@ -2558,9 +2558,7 @@ int main(int argc, char *argv[])
                        cap = cap_from_text("cap_net_admin=ep");
                        if (cap_set_proc(cap)) {
                                ast_log(LOG_WARNING, "Unable to install capabilities.\n");
-                               break;
-                       }
-                       if (cap_free(cap)) {
+                       } else if (cap_free(cap)) {
                                ast_log(LOG_WARNING, "Unable to drop capabilities.\n");
                        }
                }