From: Sean McVeigh Date: Sat, 21 May 2016 21:38:14 +0000 (-0400) Subject: fix check in cmd_pid() for failure to connect to tincd X-Git-Tag: release-1.1pre15~71 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=e47fe48aed76bfd7d2cb957e402a8cdcb0c84759;p=tinc fix check in cmd_pid() for failure to connect to tincd --- diff --git a/src/tincctl.c b/src/tincctl.c index 39a11d31..9f9df6f6 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -1391,7 +1391,7 @@ static int cmd_pid(int argc, char *argv[]) { return 1; } - if(!connect_tincd(true) && !pid) + if(!connect_tincd(true) || !pid) return 1; printf("%d\n", pid);