From f1d77844158cf39bb683c20bd49b3abbc80a75c6 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Thu, 25 Apr 2024 19:33:24 +0100 Subject: [PATCH] Ensure avr_signature()'s LIBAVRDUDE_EXIT return exits in main.c --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index 54fd1f42..690403f3 100644 --- a/src/main.c +++ b/src/main.c @@ -1554,6 +1554,10 @@ skipopen: usleep(waittime); if (init_ok) { rc = avr_signature(pgm, p); + if (rc == LIBAVRDUDE_EXIT) { + exitrc = 0; + goto main_exit; + } if (rc != LIBAVRDUDE_SUCCESS) { if (rc == LIBAVRDUDE_SOFTFAIL && (p->prog_modes & PM_UPDI) && attempt < 1) { attempt++;