projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
rootcheck
/
check_open_ports.c
diff --git
a/src/rootcheck/check_open_ports.c
b/src/rootcheck/check_open_ports.c
index
97091ee
..
519c2c4
100755
(executable)
--- a/
src/rootcheck/check_open_ports.c
+++ b/
src/rootcheck/check_open_ports.c
@@
-40,6
+40,10
@@
int connect_to_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;