1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-23 11:32:25 +03:00

client: If session is NULL we can't set an error.

Found by Coverity.
This commit is contained in:
Andreas Schneider
2012-10-08 20:14:31 +02:00
parent ec56d1d453
commit b8de9e75d0

View File

@@ -459,7 +459,6 @@ int ssh_connect(ssh_session session) {
int ret;
if (session == NULL) {
ssh_set_error(session, SSH_FATAL, "Invalid session pointer");
return SSH_ERROR;
}