Skip to content

Commit

Permalink
Fix core when ssl not configured
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
  • Loading branch information
ghalliday committed Oct 27, 2023
1 parent 52369ae commit 8f6d937
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions roxie/ccd/ccdprotocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2208,9 +2208,12 @@ IHpccProtocolListener *createProtocolListener(const char *protocol, IHpccProtoco
if (traceLevel)
{
const char *certIssuer = "none";
Owned<const IPropertyTree> tlsInfo = tlsConfig->getTree();
if (tlsInfo && tlsInfo->hasProp("@issuer"))
certIssuer = tlsInfo->queryProp("@issuer");
if (tlsConfig)
{
Owned<const IPropertyTree> tlsInfo = tlsConfig->getTree();
if (tlsInfo && tlsInfo->hasProp("@issuer"))
certIssuer = tlsInfo->queryProp("@issuer");
}
DBGLOG("Creating Roxie socket listener, protocol %s, issuer=%s, pool size %d, listen queue %d%s", protocol, certIssuer, sink->getPoolSize(), listenQueue, sink->getIsSuspended() ? " SUSPENDED":"");
}
return new ProtocolSocketListener(sink, port, listenQueue, protocol, tlsConfig);
Expand Down

0 comments on commit 8f6d937

Please sign in to comment.