X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=2a2c488e8fd712296a5546b4124408b2d20f1511;hb=9fe5ab7ccb60537810b60b76a415507ef2cadfdd;hp=c0c8a25662bb17ce1b08e97ed7b4f6cb7d98c8a0;hpb=5ae1ec8d80393182b6ff235062b6816b64edfa9b;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index c0c8a256..2a2c488e 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -1635,9 +1635,12 @@ static int cmd_config(int argc, char *argv[]) { } if(action < -1) { - if(!found) + if(found) { + return 0; + } else { fprintf(stderr, "No matching configuration variables found.\n"); - return 1; + return 1; + } } // Make sure we wrote everything...