diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-26 12:47:09 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-26 12:47:09 +0000 |
commit | 6e2c5057684a191c565220e6e41e561305b3a6ba (patch) | |
tree | 59ebc9ca6e9952db513c9f65bc39a2a4c5ff239e /omfwd.c | |
parent | 54669873b0469aa69a4c9f88bcf88470218082f8 (diff) | |
download | rsyslog-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |