fix check in cmd_pid() for failure to connect to tincd
authorSean McVeigh <sean@vger.beerbot.ca>
Sat, 21 May 2016 21:38:14 +0000 (17:38 -0400)
committerSean McVeigh <sean@vger.beerbot.ca>
Sat, 21 May 2016 21:38:14 +0000 (17:38 -0400)
src/tincctl.c

index 39a11d3..9f9df6f 100644 (file)
@@ -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);