aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/netfilter.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2018-08-20 00:00:41 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2018-08-20 00:00:41 +0200
commit6ba6972787e0a6200ac08554defa9c2349deb4eb (patch)
treef6cb879fd2520593d831d0a3f3d3798ad2c93bb0 /src/firejail/netfilter.c
parentMerge branch 'master' of https://github.com/netblue30/firejail (diff)
downloadfirejail-6ba6972787e0a6200ac08554defa9c2349deb4eb.tar.gz
firejail-6ba6972787e0a6200ac08554defa9c2349deb4eb.tar.zst
firejail-6ba6972787e0a6200ac08554defa9c2349deb4eb.zip
fix check for find_child return value (bandwidth.c, netfilter.c)
Diffstat (limited to 'src/firejail/netfilter.c')
-rw-r--r--src/firejail/netfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/netfilter.c b/src/firejail/netfilter.c
index de446d032..11c7e9669 100644
--- a/src/firejail/netfilter.c
+++ b/src/firejail/netfilter.c
@@ -170,7 +170,7 @@ void netfilter_print(pid_t pid, int ipv6) {
170 170
171 // join the network namespace 171 // join the network namespace
172 pid_t child; 172 pid_t child;
173 if (find_child(pid, &child) == -1) { 173 if (find_child(pid, &child) == 1) {
174 fprintf(stderr, "Error: cannot join the network namespace\n"); 174 fprintf(stderr, "Error: cannot join the network namespace\n");
175 exit(1); 175 exit(1);
176 } 176 }