You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by pa...@apache.org on 2017/06/20 14:20:28 UTC
[trafficserver] branch master updated: Issue 2157: Configuration
reload on master is crashing when built with ASAN
This is an automated email from the ASF dual-hosted git repository.
paziz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 8960182 Issue 2157: Configuration reload on master is crashing when built with ASAN
8960182 is described below
commit 8960182aca47a801feb81c2111a26f5bc8ab2a91
Author: Persia Aziz <pe...@yahoo-inc.com>
AuthorDate: Mon Jun 19 17:32:32 2017 -0500
Issue 2157: Configuration reload on master is crashing when built with ASAN
---
mgmt/LocalManager.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mgmt/LocalManager.cc b/mgmt/LocalManager.cc
index eab9ac0..0fea99b 100644
--- a/mgmt/LocalManager.cc
+++ b/mgmt/LocalManager.cc
@@ -580,7 +580,7 @@ LocalManager::sendMgmtMsgToProcesses(MgmtMessageHdr *mh)
case MGMT_EVENT_CONFIG_FILE_UPDATE:
case MGMT_EVENT_CONFIG_FILE_UPDATE_NO_INC_VERSION:
bool found;
- char *fname;
+ char *fname = nullptr;
Rollback *rb;
char *data_raw;
@@ -594,7 +594,7 @@ LocalManager::sendMgmtMsgToProcesses(MgmtMessageHdr *mh)
mgmt_log("[LocalManager:sendMgmtMsgToProcesses] Unknown file change: '%s'\n", data_raw);
}
ink_assert(found);
- if (!(configFiles && configFiles->getRollbackObj(fname, &rb)) &&
+ if (!(fname && configFiles && configFiles->getRollbackObj(fname, &rb)) &&
(strcmp(data_raw, "proxy.config.body_factory.template_sets_dir") != 0) &&
(strcmp(data_raw, "proxy.config.ssl.server.ticket_key.filename") != 0)) {
mgmt_fatal(0, "[LocalManager::sendMgmtMsgToProcesses] "
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].