diff options
Diffstat (limited to 'cli-authinteract.c')
-rw-r--r-- | cli-authinteract.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli-authinteract.c b/cli-authinteract.c index 5a169cb..5fe5bf1 100644 --- a/cli-authinteract.c +++ b/cli-authinteract.c @@ -99,13 +99,14 @@ void recv_msg_userauth_info_request() { if (strlen(name) > 0) { cleantext(name); fprintf(stderr, "%s", name); - m_free(name); } + m_free(name); + if (strlen(instruction) > 0) { cleantext(instruction); fprintf(stderr, "%s", instruction); - m_free(instruction); } + m_free(instruction); for (i = 0; i < num_prompts; i++) { unsigned int response_len = 0; |