From c36280e0cfc217dd879891e0c8c478969b7da220 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 15 Mar 2022 02:46:53 +0000 Subject: [PATCH] Correct return type check --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 3322298..9f0173f 100644 --- a/main.cpp +++ b/main.cpp @@ -581,7 +581,7 @@ int main(int argc, char* argv[]) { // Create tun and bind to sockets... // - if (tun_alloc(tun_name, TUN_IF_COUNT, fd) < 0) { + if (tun_alloc(tun_name, TUN_IF_COUNT, fd) != 0) { fprintf(stderr, "Failed to alloc tun if\n"); return -1; } -- 2.39.5