From cc803ee802fa032d17caf156ca73e940c59c2903 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 4 Oct 2017 22:29:42 +0800 Subject: [PATCH] fix pubkey authentication return value --- svr-authpubkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svr-authpubkey.c b/svr-authpubkey.c index fbee63f..994e0af 100644 --- a/svr-authpubkey.c +++ b/svr-authpubkey.c @@ -361,8 +361,8 @@ static int checkpubkey(char* algo, unsigned int algolen, } line_num++; - if (checkpubkey_line(line, line_num, filename, - algo, algolen, keyblob, keybloblen) == DROPBEAR_SUCCESS) { + ret = checkpubkey_line(line, line_num, filename, algo, algolen, keyblob, keybloblen); + if (ret == DROPBEAR_SUCCESS) { break; }