diff svr-authpubkey.c @ 1451:7e95ab97d2b0

fix pubkey authentication return value
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 Oct 2017 22:29:42 +0800
parents 4cebe907dfd0
children 15d4b821bcc9
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;
 		}