diff options
author | 2019-03-02 17:56:57 +0100 | |
---|---|---|
committer | 2019-03-02 17:56:57 +0100 | |
commit | f757fc684ee654de51e0e6ff386933e1075c2fa5 (patch) | |
tree | e977338f1e4d8c42ba6fbd6d6c77061ac0ad2a77 | |
parent | Add new profile for transgui (#2502) (diff) | |
download | firejail-f757fc684ee654de51e0e6ff386933e1075c2fa5.tar.gz firejail-f757fc684ee654de51e0e6ff386933e1075c2fa5.tar.zst firejail-f757fc684ee654de51e0e6ff386933e1075c2fa5.zip |
profile.c: errout with too many dns args
-rw-r--r-- | src/firejail/profile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 53947d889..667b03652 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -855,8 +855,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
855 | cfg.dns4 = dns; | 855 | cfg.dns4 = dns; |
856 | else { | 856 | else { |
857 | fprintf(stderr, "Error: up to 4 DNS servers can be specified\n"); | 857 | fprintf(stderr, "Error: up to 4 DNS servers can be specified\n"); |
858 | free(dns); | 858 | exit(1); |
859 | return 1; | ||
860 | } | 859 | } |
861 | return 0; | 860 | return 0; |
862 | } | 861 | } |