summaryrefslogtreecommitdiffstats
path: root/omfwd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-26 12:47:09 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-26 12:47:09 +0000
commit6e2c5057684a191c565220e6e41e561305b3a6ba (patch)
tree59ebc9ca6e9952db513c9f65bc39a2a4c5ff239e /omfwd.c
parent54669873b0469aa69a4c9f88bcf88470218082f8 (diff)
downloadrsyslog-6e2c5057684a191c565220e6e41e561305b3a6ba.tar.gz
rsyslog-6e2c5057684a191c565220e6e41e561305b3a6ba.tar.xz
rsyslog-6e2c5057684a191c565220e6e41e561305b3a6ba.zip
- changed doAction() interface to contain the full message string
- f_iov and its handling has been removed
Diffstat (limited to 'omfwd.c')
-rw-r--r--omfwd.c6
1 files changed, 3 insertions, 3 deletions
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;