X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Ftincctl.c;h=499a7b86b7398631998e55fcb5acb3f8d63aef70;hb=743d3cefc244e669c9265da8355e8722d990fc8e;hp=57c42812e4f877f87519d21ba9d72d3deb8bc516;hpb=d72a450975bed625e058eb857410f0d78caee2d1;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 57c42812..499a7b86 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -1884,7 +1884,7 @@ static int cmd_config(int argc, char *argv[]) { char *node = NULL; char *variable; char *value; - int len; + size_t len; len = strcspn(line, "\t ="); value = line + len; @@ -1936,6 +1936,7 @@ static int cmd_config(int argc, char *argv[]) { if(!str2net(&s, value)) { fprintf(stderr, "Malformed subnet definition %s\n", value); + return 1; } if(!subnetcheck(s)) {