From 6e2c5057684a191c565220e6e41e561305b3a6ba Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 26 Jul 2007 12:47:09 +0000 Subject: - changed doAction() interface to contain the full message string - f_iov and its handling has been removed --- omfwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'omfwd.c') diff --git a/omfwd.c b/omfwd.c index 4761b804..84436381 100644 --- a/omfwd.c +++ b/omfwd.c @@ -523,6 +523,7 @@ static char *getFwdSyslogPt(instanceData *pData) return(pData->port); } + BEGINdoAction char *psz; /* temporary buffering */ register unsigned l; @@ -597,13 +598,12 @@ CODESTARTdoAction f_forw: dprintf(" %s:%s/%s\n", pData->f_hname, getFwdSyslogPt(pData), pData->protocol == FORW_UDP ? "udp" : "tcp"); - iovCreate(f); if ( strcmp(getHOSTNAME(f->f_pMsg), LocalHostName) && NoHops ) dprintf("Not sending message to remote.\n"); else { pData->ttSuspend = time(NULL); - psz = iovAsString(f); - l = f->f_iLenpsziov; + psz = (char*) pMsg; + l = strlen((char*) psz); if (l > MAXLINE) l = MAXLINE; -- cgit