bugfix: code did not compile without zlib

This commit is contained in:
Rainer Gerhards 2008-12-03 10:45:11 +01:00
parent 1f1e325492
commit 6b905b511b
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,7 @@
---------------------------------------------------------------------------
Version 4.1.2 [DEVEL] (rgerhards), 2008-11-??
- bugfix: code did not compile without zlib
---------------------------------------------------------------------------
Version 4.1.1 [DEVEL] (rgerhards), 2008-11-26
- added $PrivDropToGroup, $PrivDropToUser, $PrivDropToGroupID,
$PrivDropToUserID config directives to enable dropping privileges.

View File

@ -127,12 +127,16 @@ finalize_it:
/* in this case, we still need to check if the message is compressed. If so, we must
* tell the user we can not accept it.
*/
if(len > 0 && *msg == 'z') {
//pszMsg = pMsg->pszRawMsg;
//lenMsg = pMsg->iLenRawMsg;
//if(lenMsg > 0 && *msg == 'z') {
if(pMsg->iLenRawMsg > 0 && *pMsg->pszRawMsg == 'z') {
errmsg.LogError(0, NO_ERRCODE, "Received a compressed message, but rsyslogd does not have compression "
"support enabled. The message will be ignored.");
ABORT_FINALIZE(RS_RET_NO_ZIP);
}
finalize_it:
# endif /* ifdef USE_NETZIP */
RETiRet;