Skip to content

Commit 963f6c0

Browse files
committed
server session BUGFIX duplicate has before freeing the buffer
1 parent 0ab3a66 commit 963f6c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/session_server_ssh.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,9 @@ auth_password_get_pwd_hash(const char *username)
822822
goto error;
823823
}
824824

825+
pass_hash = strdup(pass_hash);
825826
free(buf);
826-
return strdup(pass_hash);
827+
return pass_hash;
827828

828829
error:
829830
free(buf);

0 commit comments

Comments
 (0)