diff svr-authpubkeyoptions.c @ 1881:d39cfedaf015

extract pubkey_info when seuccesfully auth with a key and free it in the cleanup function
author HansH111 <hans@atbas.org>
date Sun, 13 Mar 2022 17:38:13 +0000
parents 587c76726b5f
children
line wrap: on
line diff
--- a/svr-authpubkeyoptions.c	Sun Mar 13 17:37:44 2022 +0000
+++ b/svr-authpubkeyoptions.c	Sun Mar 13 17:38:13 2022 +0000
@@ -115,6 +115,9 @@
 		}
 		m_free(ses.authstate.pubkey_options);
 	}
+	if (ses.authstate.pubkey_info) {
+		m_free(ses.authstate.pubkey_info);
+	}
 }
 
 /* helper for svr_add_pubkey_options. returns DROPBEAR_SUCCESS if the option is matched,