Skip to content

Commit

Permalink
[Server] Correct parsing of the xrootd.tls command.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 authored and osschar committed Oct 10, 2019
1 parent 4d0a3ac commit 04624d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/XrdXrootd/XrdXrootdConfig.cc
Expand Up @@ -1788,8 +1788,7 @@ int XrdXrootdProtocol::xtls(XrdOucStream &Config)
if (!(val = Config.GetWord()))
{eDest.Emsg("config", "tls parameter not specified"); return 1;}

if (strcmp("tls", val)) forall = true;
if (strcmp("capable", val))
if (!strcmp("capable", val))
{forall = false;
if (!(val = Config.GetWord()))
{eDest.Emsg("config", "tls requirement not specified"); return 1;}
Expand Down

0 comments on commit 04624d4

Please sign in to comment.