summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-09 13:01:57 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-09 13:01:57 +0100
commitc1760db6bbd07086177679b2be4b2d307657ddce (patch)
tree9f639ad8d6a7577b48892d1cd0510ad11fd91e93 /plugins
parent6bad782f154b7f838c7371bf99c13f6dc4ec4101 (diff)
downloadrsyslog-c1760db6bbd07086177679b2be4b2d307657ddce.tar.gz
rsyslog-c1760db6bbd07086177679b2be4b2d307657ddce.tar.xz
rsyslog-c1760db6bbd07086177679b2be4b2d307657ddce.zip
bugfix: omlibdbi did not use password from rsyslog.con
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=203
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omlibdbi/omlibdbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/omlibdbi/omlibdbi.c b/plugins/omlibdbi/omlibdbi.c
index 6f130f54..67b1edf9 100644
--- a/plugins/omlibdbi/omlibdbi.c
+++ b/plugins/omlibdbi/omlibdbi.c
@@ -287,7 +287,7 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1)
if(dbName != NULL)
if((pData->dbName = (uchar*) strdup((char*)dbName)) == NULL) ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY);
if(pwd != NULL)
- if((pData->pwd = (uchar*) strdup((char*)"")) == NULL) ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY);
+ if((pData->pwd = (uchar*) strdup((char*)pwd)) == NULL) ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY);
CHKiRet(cflineParseTemplateName(&p, *ppOMSR, 0, OMSR_RQD_TPL_OPT_SQL, (uchar*) " StdDBFmt"));