aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-26 09:00:39 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-26 09:00:39 +0200
commitb5db04003da54badc86fd279b9c7f6f8d613af39 (patch)
tree6b807ca1fe74f6b5547ebacfdef9161b1de7959a /src
parenta51d377afeb8e8bf7169ba0167d50619cb684f89 (diff)
downloadlibssh-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/auth.c b/src/auth.c
index 41ca13a8..19a0b2e0 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -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;