diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp index 6ca6a8dd..75c9c7a1 100644 --- a/include/libssh/libsshpp.hpp +++ b/include/libssh/libsshpp.hpp @@ -212,7 +212,7 @@ public: * @see ssh_userauth_kbdint */ int userauthKbdint(const char* username, const char* submethods){ - int ret=ssh_userauth_kbdint(c_session,NULL,NULL); + int ret = ssh_userauth_kbdint(c_session, username, submethods); ssh_throw(ret); return ret; }