mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-09 00:41:57 +03:00
client: If session is NULL we can't set an error.
Found by Coverity.
This commit is contained in:
@ -459,7 +459,6 @@ int ssh_connect(ssh_session session) {
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (session == NULL) {
|
if (session == NULL) {
|
||||||
ssh_set_error(session, SSH_FATAL, "Invalid session pointer");
|
|
||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user