From b5db04003da54badc86fd279b9c7f6f8d613af39 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 26 Aug 2011 09:00:39 +0200 Subject: auth: Fix a segfault in ssh_userauth_kbdint_init(). --- src/auth.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/auth.c b/src/auth.c index 41ca13a..19a0b2e 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; -- cgit v1.2.3