From: Matt Corallo Date: Tue, 15 Mar 2022 02:46:53 +0000 (+0000) Subject: Correct return type check X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=c36280e0cfc217dd879891e0c8c478969b7da220;p=tunudptotcp Correct return type check --- 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; }