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;