novi upstream verzije 2.8.3
[ossec-hids.git] / src / client-agent / sendmsg.c
index f92a457..507b61c 100755 (executable)
@@ -31,7 +31,7 @@ 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);