aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/sandbox.c')
-rw-r--r--src/firejail/sandbox.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index 23cdc07d1..ed0a253b3 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2014-2017 Firejail Authors 2 * Copyright (C) 2014-2018 Firejail Authors
3 * 3 *
4 * This file is part of firejail project 4 * This file is part of firejail project
5 * 5 *
@@ -652,12 +652,14 @@ int sandbox(void* sandbox_arg) {
652 else 652 else
653 fmessage("Default gateway %d.%d.%d.%d\n", PRINT_IP(cfg.defaultgw)); 653 fmessage("Default gateway %d.%d.%d.%d\n", PRINT_IP(cfg.defaultgw));
654 } 654 }
655 if (cfg.dns1 != 0) 655 if (cfg.dns1 != NULL)
656 fmessage("DNS server %d.%d.%d.%d\n", PRINT_IP(cfg.dns1)); 656 fmessage("DNS server %s\n", cfg.dns1);
657 if (cfg.dns2 != 0) 657 if (cfg.dns2 != NULL)
658 fmessage("DNS server %d.%d.%d.%d\n", PRINT_IP(cfg.dns2)); 658 fmessage("DNS server %s\n", cfg.dns2);
659 if (cfg.dns3 != 0) 659 if (cfg.dns3 != NULL)
660 fmessage("DNS server %d.%d.%d.%d\n", PRINT_IP(cfg.dns3)); 660 fmessage("DNS server %s\n", cfg.dns3);
661 if (cfg.dns4 != NULL)
662 fmessage("DNS server %s\n", cfg.dns4);
661 fmessage("\n"); 663 fmessage("\n");
662 } 664 }
663 } 665 }