aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/auth.c4
1 files changed, 4 insertions, 0 deletions
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;