summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2013-03-05 17:35:26 +0100
committerMichael Biebl <biebl@debian.org>2013-03-05 17:35:26 +0100
commitac1a840d0afd724fa614eed5d64112a9ecf097f8 (patch)
tree29fc7cd1a00820ae3bda8e5b08e32da89c055e60 /plugins
parent3793efd744861415cbb0e10df6ac9eab7b21e78e (diff)
downloadrsyslog-ac1a840d0afd724fa614eed5d64112a9ecf097f8.tar.gz
Imported Upstream version 7.2.6upstream/7.2.6
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omelasticsearch/omelasticsearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/omelasticsearch/omelasticsearch.c b/plugins/omelasticsearch/omelasticsearch.c
index 50acdf1..00e4dba 100644
--- a/plugins/omelasticsearch/omelasticsearch.c
+++ b/plugins/omelasticsearch/omelasticsearch.c
@@ -314,7 +314,7 @@ setCurlURL(instanceData *pData, uchar **tpls)
if(pData->uid != NULL) {
rLocal = snprintf(authBuf, sizeof(authBuf), "%s:%s", pData->uid,
(pData->pwd == NULL) ? "" : (char*)pData->pwd);
- if(rLocal != (int) es_strlen(url)) {
+ if(rLocal < 1) {
errmsg.LogError(0, RS_RET_ERR, "omelasticsearch: snprintf failed "
"when trying to build auth string (return %d)\n",
rLocal);