mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
auth: Fix a segfault in ssh_userauth_kbdint_init().
This commit is contained in:
@@ -1521,6 +1521,10 @@ static int ssh_userauth_kbdint_init(ssh_session session,
|
||||
}
|
||||
|
||||
/* submethods */
|
||||
if (submethods == NULL) {
|
||||
submethods = "";
|
||||
}
|
||||
|
||||
str = ssh_string_from_char(submethods);
|
||||
if (rc < 0) {
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user