X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fremoted%2Fsyslog.c;h=7011aa8b592cd3ebe1f3f510a2d9cd3cf9017489;hp=fd08c354c81618e52e0f430ef30590db69698222;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/remoted/syslog.c b/src/remoted/syslog.c index fd08c35..7011aa8 100755 --- a/src/remoted/syslog.c +++ b/src/remoted/syslog.c @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/remoted/syslog.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. @@ -18,7 +19,7 @@ -/* OS_IPNotAllowed, v0.1, 2005/02/11 +/* OS_IPNotAllowed, v0.1, 2005/02/11 * Checks if an IP is not allowed. */ static int OS_IPNotAllowed(char *srcip) @@ -66,7 +67,7 @@ void HandleSyslog() /* Initializing some variables */ memset(buffer, '\0', OS_SIZE_1024 +2); - + /* Connecting to the message queue * Exit if it fails. */ @@ -74,13 +75,13 @@ void HandleSyslog() { ErrorExit(QUEUE_FATAL,ARGV0, DEFAULTQUEUE); } - + /* Infinite loop in here */ while(1) { /* Receiving message */ - recv_b = recvfrom(logr.sock, buffer, OS_SIZE_1024, 0, + recv_b = recvfrom(logr.sock, buffer, OS_SIZE_1024, 0, (struct sockaddr *)&peer_info, &peer_size); /* Nothing received */ @@ -119,7 +120,7 @@ void HandleSyslog() else { buffer_pt = buffer; - } + } /* Checking if IP is allowed here */ if(OS_IPNotAllowed(srcip))