Skip to content

Commit

Permalink
Correct '+' expansion handling. This makes expansion work.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jul 26, 2013
1 parent 086abc3 commit 03688c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdNet/XrdNetUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ bool XrdNetUtils::Match(const char *HostName, const char *HostPat)
char hBuff[264];
if (i >= (int)sizeof(hBuff)) return false;
strncpy(hBuff, HostPat, i-1);
hBuff[i] = 0;
hBuff[i-1] = 0;
if (InetAddr[0].Set(hBuff, i, maxIP, 0)) return false;
while(i--) if ((mval = InetAddr[i].Name()) && !strcmp(mval, HostName))
return true;
Expand Down

0 comments on commit 03688c5

Please sign in to comment.