-/* @(#) $Id$ */
+/* @(#) $Id: ./src/client-agent/sendmsg.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
#include "agentd.h"
#include "os_net/os_net.h"
-
+
/* Sends a message to the server */
int send_msg(int agentid, char *msg)
}
/* Send msg_size of crypt_msg */
- if(OS_SendUDPbySize(logr->sock, msg_size, crypt_msg) < 0)
+ if(OS_SendUDPbySize(agt->sock, msg_size, crypt_msg) < 0)
{
merror(SEND_ERROR,ARGV0, "server");
sleep(1);