From e1e672a60d062c174f3d75c64498daa8ca710601 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 29 Jan 2018 08:19:17 -0800 Subject: [PATCH] projtool.pl: add missing return Add the missing return so that a non-DNS mirror URL will actually be rejected (without --force) rather than mistakenly showing the warning about it being allowed even though --force was not given. Signed-off-by: Kyle J. McKay --- toolbox/projtool.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/projtool.pl b/toolbox/projtool.pl index 7c75d3a..819ab49 100755 --- a/toolbox/projtool.pl +++ b/toolbox/projtool.pl @@ -469,7 +469,7 @@ sub cmd_create { unless (is_dns_hostname($mh)) { unless ($force) { warn "Invalid non-DNS mirror URL: \"$checkurl\"\n"; - undef; + return undef; } warn "Allowing non-DNS mirror URL with --force\n" unless $quiet; } -- 2.11.4.GIT