소스 검색

properly call close() on the ssh connection before exiting.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1160 f882894a-f735-0410-b71e-b25c423dba1c
M. Sean Finney 21 년 전
부모
커밋
afca8db23e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      plugins/check_ssh.c

+ 1 - 0
plugins/check_ssh.c

@@ -240,6 +240,7 @@ ssh_connect (char *haddr, int hport, char *remote_version)
 		printf
 			(_("SSH OK - %s (protocol %s)\n"),
 			 ssh_server, ssh_proto);
+		close(sd);
 		exit (STATE_OK);
 	}
 }