diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-13 15:58:30 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-13 15:58:30 +0200 |
commit | 76b3fb796022ae249ae77db5288ceec542e7efa2 (patch) | |
tree | 847b095404ddd06fcfceaa023cbb65f30c95ff6a | |
parent | 7d703b82ff2649cf11c5245e1d0515659bffeb8d (diff) | |
parent | ddd427cf5cb6fea314845940ff1ada8b0bb51b31 (diff) | |
download | rsyslog-76b3fb796022ae249ae77db5288ceec542e7efa2.tar.gz rsyslog-76b3fb796022ae249ae77db5288ceec542e7efa2.tar.xz rsyslog-76b3fb796022ae249ae77db5288ceec542e7efa2.zip |
Merge branch 'beta'
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | tools/omfwd.c | 4 |
3 files changed, 6 insertions, 3 deletions
@@ -337,6 +337,9 @@ version before switching to this one. - bugfix: memory leak in ompgsql Thanks to Ken for providing the patch --------------------------------------------------------------------------- +Version 3.22.2 [v3-stable] (rgerhards), 2009-07-?? +- bugfix: sending syslog messages with zip compression did not work +--------------------------------------------------------------------------- Version 3.22.1 [v3-stable] (rgerhards), 2009-07-02 - bugfix: invalid error message issued if $inlcudeConfig was on an empty set of files (e.g. *.conf, where none such files existed) diff --git a/configure.ac b/configure.ac index fae59bb3..e88e1ceb 100644 --- a/configure.ac +++ b/configure.ac @@ -416,7 +416,7 @@ if test "x$enable_mysql" = "xyes"; then [yes],,, ) if test "x${HAVE_MYSQL_CONFIG}" != "xyes"; then - AC_MSG_FAILURE([mysql_config not found in PATH]) + AC_MSG_FAILURE([mysql_config not found in PATH - usually a package named mysql-dev, libmysql-dev or similar, is missing - install it to fix this issue]) fi AC_CHECK_LIB( [mysqlclient], diff --git a/tools/omfwd.c b/tools/omfwd.c index f21bb5c8..a7c4e769 100644 --- a/tools/omfwd.c +++ b/tools/omfwd.c @@ -436,11 +436,11 @@ CODESTARTdoAction */ if(pData->compressionLevel && (l > MIN_SIZE_FOR_COMPRESS)) { Bytef *out; - uLongf destLen = sizeof(out) / sizeof(Bytef); + uLongf destLen = iMaxLine + iMaxLine/100 +12; /* recommended value from zlib doc */ uLong srcLen = l; int ret; /* TODO: optimize malloc sequence? -- rgerhards, 2008-09-02 */ - CHKmalloc(out = (Bytef*) malloc(iMaxLine + iMaxLine/100 + 12)); + CHKmalloc(out = (Bytef*) malloc(destLen)); out[0] = 'z'; out[1] = '\0'; ret = compress2((Bytef*) out+1, &destLen, (Bytef*) psz, |