diff options
Diffstat (limited to 'src/firejail/caps.c')
-rw-r--r-- | src/firejail/caps.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/firejail/caps.c b/src/firejail/caps.c index 521187e3a..30693f7a0 100644 --- a/src/firejail/caps.c +++ b/src/firejail/caps.c | |||
@@ -183,8 +183,10 @@ static int caps_find_name(const char *name) { | |||
183 | // return 1 if error, 0 if OK | 183 | // return 1 if error, 0 if OK |
184 | void caps_check_list(const char *clist, void (*callback)(int)) { | 184 | void caps_check_list(const char *clist, void (*callback)(int)) { |
185 | // don't allow empty lists | 185 | // don't allow empty lists |
186 | if (clist == NULL || *clist == '\0') | 186 | if (clist == NULL || *clist == '\0') { |
187 | goto errexit; | 187 | fprintf(stderr, "Error: empty capabilities list\n"); |
188 | exit(1); | ||
189 | } | ||
188 | 190 | ||
189 | // work on a copy of the string | 191 | // work on a copy of the string |
190 | char *str = strdup(clist); | 192 | char *str = strdup(clist); |