X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fwin32%2Fwin_agent.c;h=0c0122449b87588392767c2f3fb01bafd9458161;hp=b631a9c92a6ee8be39cd65649f1f4ce33bc790a8;hb=301048b51990573e58a30dc4a5bb4ec285cad554;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a diff --git a/src/win32/win_agent.c b/src/win32/win_agent.c index b631a9c..0c01224 100755 --- a/src/win32/win_agent.c +++ b/src/win32/win_agent.c @@ -1,11 +1,11 @@ -/* @(#) $Id: win_agent.c,v 1.56 2009/12/01 20:27:01 dcid Exp $ */ +/* @(#) $Id$ */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation. * * License details at the LICENSE file included with OSSEC or @@ -361,6 +361,7 @@ int SendMSG(int queue, char *message, char *locmsg, char loc) cu_time = time(0); + #ifndef ONEWAY /* Check if the server has responded */ if((cu_time - available_server) > (NOTIFY_TIME - 180)) { @@ -479,7 +480,12 @@ int SendMSG(int queue, char *message, char *locmsg, char loc) } } } - + #else + if(0) + { + } + #endif + /* Send notification */ else if((cu_time - __win32_curr_time) > (NOTIFY_TIME - 200))