diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-16 16:00:49 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-16 16:00:49 +0000 |
commit | e58ffa0ed1efcdf128da3834a7ec2edaf5480487 (patch) | |
tree | 7ea022ca3e39f7d8aa3837f6f04be46c7e292310 /src/libs/zbxsysinfo | |
parent | 1e5b750059435b1794f282c8bcb070209d6e2cf5 (diff) | |
download | zabbix-e58ffa0ed1efcdf128da3834a7ec2edaf5480487.tar.gz zabbix-e58ffa0ed1efcdf128da3834a7ec2edaf5480487.tar.xz zabbix-e58ffa0ed1efcdf128da3834a7ec2edaf5480487.zip |
more fixes for connection
git-svn-id: svn://svn.zabbix.com/trunk@4029 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo')
-rw-r--r-- | src/libs/zbxsysinfo/simple/simple.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/zbxsysinfo/simple/simple.c b/src/libs/zbxsysinfo/simple/simple.c index 48ff72b5..5e584942 100644 --- a/src/libs/zbxsysinfo/simple/simple.c +++ b/src/libs/zbxsysinfo/simple/simple.c @@ -113,14 +113,14 @@ static int check_ssh(const char *host, unsigned short port, int *value_int) send_buf[MAX_BUF_LEN], *recv_buf, *ssh_server, - *ssh_proto; - + *ssh_proto;
+ assert(value_int); *value_int = 0; if( SUCCEED == (ret = zbx_tcp_connect(&s, host, port)) ) - { + {
if( SUCCEED == (ret = zbx_tcp_recv(&s, &recv_buf)) ) { if ( 0 == strncmp(recv_buf, "SSH", 3) ) |