]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/pvefw-logger.c
buildsys: use dpkg-architecture
[pve-firewall.git] / src / pvefw-logger.c
index 3b79ed1ad08ea7fbd9fd01e5711a2ecc775e9c6b..3dc40eb527701f7dc76432c3c1fada9f2507ec24 100644 (file)
@@ -982,7 +982,7 @@ main(int argc, char *argv[])
         exit(-1);
     }
 
-    if (!nflog_bind_pf(logh, AF_INET) <= 0) {
+    if (nflog_bind_pf(logh, AF_INET) < 0) {
         fprintf(stderr, "nflog_bind_pf AF_INET failed\n");
         exit(-1);
     }
@@ -994,7 +994,7 @@ main(int argc, char *argv[])
     }
 #endif
 
-    if (!nflog_bind_pf(logh, AF_BRIDGE) <= 0) {
+    if (nflog_bind_pf(logh, AF_BRIDGE) < 0) {
         fprintf(stderr, "nflog_bind_pf AF_BRIDGE failed\n");
         exit(-1);
     }