diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-16 16:06:17 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-16 16:06:17 +0000 |
commit | 71f047d4178f2b4f3845ff11c7ca53e171767529 (patch) | |
tree | 8d87c24611db1c0ab3863635e4d9f9661fb486df /src/libs/zbxsysinfo | |
parent | e58ffa0ed1efcdf128da3834a7ec2edaf5480487 (diff) | |
download | zabbix-71f047d4178f2b4f3845ff11c7ca53e171767529.tar.gz zabbix-71f047d4178f2b4f3845ff11c7ca53e171767529.tar.xz zabbix-71f047d4178f2b4f3845ff11c7ca53e171767529.zip |
win2nix
git-svn-id: svn://svn.zabbix.com/trunk@4030 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo')
-rw-r--r-- | src/libs/zbxsysinfo/simple/simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/zbxsysinfo/simple/simple.c b/src/libs/zbxsysinfo/simple/simple.c index 5e584942..28a04f04 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) ) |