mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-16 08:04:30 +03:00
client: If session is NULL we can't set an error.
Found by Coverity.
This commit is contained in:
parent
ec56d1d453
commit
b8de9e75d0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user