diff --git a/src/tincctl.c b/src/tincctl.c
index 7a3195e5..73b998a5 100644
--- a/src/tincctl.c
+++ b/src/tincctl.c
@@ -1613,7 +1613,7 @@ static int cmd_config(int argc, char *argv[]) {
 	if(action < -1) {
 		if(!found)
 			fprintf(stderr, "No matching configuration variables found.\n");
-		return 0;
+		return 1;
 	}
 
 	// Make sure we wrote everything...