aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-08 20:14:31 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-09 11:09:34 +0200
commitb8de9e75d02c20f0603771074e5f40ddf90f4f99 (patch)
tree0f03f56c7cbf75c6813c03500f1f8bfd2b4560a0
parentec56d1d4537cdc165abd6aaeb32ed43197fc63e0 (diff)
downloadlibssh-b8de9e75d02c20f0603771074e5f40ddf90f4f99.tar.gz
libssh-b8de9e75d02c20f0603771074e5f40ddf90f4f99.tar.xz
libssh-b8de9e75d02c20f0603771074e5f40ddf90f4f99.zip
client: If session is NULL we can't set an error.
Found by Coverity.
-rw-r--r--src/client.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c
index 331d3c21..f571b2d9 100644
--- a/src/client.c
+++ b/src/client.c
@@ -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;
}