mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 01:40:42 +01:00
bugfix: code did not compile without zlib
This commit is contained in:
parent
1f1e325492
commit
6b905b511b
@ -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.
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user