changeset 1451:7e95ab97d2b0

fix pubkey authentication return value
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 Oct 2017 22:29:42 +0800
parents 7dddc4dd7063
children 15d4b821bcc9
files svr-authpubkey.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/svr-authpubkey.c	Tue Jun 27 23:02:05 2017 +0800
+++ b/svr-authpubkey.c	Wed Oct 04 22:29:42 2017 +0800
@@ -361,8 +361,8 @@
 		}
 		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;
 		}