diff --git a/lib/utils_crypt.c b/lib/utils_crypt.c index 2f619f15..7382f0d1 100644 --- a/lib/utils_crypt.c +++ b/lib/utils_crypt.c @@ -179,7 +179,7 @@ static int interactive_pass(const char *prompt, char *pass, size_t maxlen, int infd, outfd; if (maxlen < 1) - goto out_err; + return failed; /* Read and write to /dev/tty if available */ infd = open("/dev/tty", O_RDWR);