cli_wp: Fix bail-out when multiple chips are detected

We need to bail out in this case, too. Otherwise flashprog tries to
use the null pointer `flash'.

Change-Id: Id2588c7e8065169236cf56d67a524779c51f2577
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/310
diff --git a/cli_wp.c b/cli_wp.c
index cfc7afd..429fffa 100644
--- a/cli_wp.c
+++ b/cli_wp.c
@@ -406,6 +406,7 @@
 	if (ret == 3) {
 		fprintf(stderr, "Multiple flash chip definitions match the detected chip.\n"
 				"Please specify which chip definition to use with the -c <chipname> option.\n");
+		goto shutdown_ret;
 	} else if (ret) {
 		fprintf(stderr, "No EEPROM/flash device found.\n");
 		goto shutdown_ret;