diff options
-rw-r--r-- | include/libssh/libsshpp.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp index af08a914..b8652f73 100644 --- a/include/libssh/libsshpp.hpp +++ b/include/libssh/libsshpp.hpp @@ -306,9 +306,9 @@ public: * @see ssh_is_server_known */ int isServerKnown(){ - int ret=ssh_is_server_known(c_session); - ssh_throw(ret); - return ret; + int state = ssh_session_is_known_server(c_session); + ssh_throw(state); + return state; } void log(int priority, const char *format, ...){ char buffer[1024]; |