diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-26 09:00:39 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-26 09:00:39 +0200 |
commit | b5db04003da54badc86fd279b9c7f6f8d613af39 (patch) | |
tree | 6b807ca1fe74f6b5547ebacfdef9161b1de7959a /src | |
parent | a51d377afeb8e8bf7169ba0167d50619cb684f89 (diff) | |
download | libssh-b5db04003da54badc86fd279b9c7f6f8d613af39.tar.gz libssh-b5db04003da54badc86fd279b9c7f6f8d613af39.tar.xz libssh-b5db04003da54badc86fd279b9c7f6f8d613af39.zip |
auth: Fix a segfault in ssh_userauth_kbdint_init().
Diffstat (limited to 'src')
-rw-r--r-- | src/auth.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |