From 461f6f8b2327006b785b5f9107b08e5e30e446c6 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Mon, 2 Oct 2006 02:19:04 +0000 Subject: [PATCH] Uhm yah, not sure who committed this into trunk... Anyway, I think this is what was intended... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44145 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/asterisk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/asterisk.c b/main/asterisk.c index ae8a56b019..d1e930f1f5 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -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"); } }