X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Frootcheck%2Fcheck_rc_ports.c;h=94b1fae037e715862eb383fdfae94eed7b3d01ba;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=d40356d872717151776f93ac952c53b7ed20b536;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/rootcheck/check_rc_ports.c b/src/rootcheck/check_rc_ports.c index d40356d..94b1fae 100755 --- a/src/rootcheck/check_rc_ports.c +++ b/src/rootcheck/check_rc_ports.c @@ -85,7 +85,10 @@ int conn_port(int proto, int port) if((ossock = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP)) < 0) return(0); } - + else + { + return (0); + } memset(&server, 0, sizeof(server)); server.sin_family = AF_INET;