1
0
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:
Andreas Schneider
2011-08-26 09:00:39 +02:00
parent a51d377afe
commit b5db04003d

View File

@@ -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;