aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/profile.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2019-03-02 17:56:57 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2019-03-02 17:56:57 +0100
commitf757fc684ee654de51e0e6ff386933e1075c2fa5 (patch)
treee977338f1e4d8c42ba6fbd6d6c77061ac0ad2a77 /src/firejail/profile.c
parentAdd new profile for transgui (#2502) (diff)
downloadfirejail-f757fc684ee654de51e0e6ff386933e1075c2fa5.tar.gz
firejail-f757fc684ee654de51e0e6ff386933e1075c2fa5.tar.zst
firejail-f757fc684ee654de51e0e6ff386933e1075c2fa5.zip
profile.c: errout with too many dns args
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r--src/firejail/profile.c3
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 }