Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XRDTPC_TPROT is set to the value of XRDTPC_SPROT #1338

Closed
murrayc3 opened this issue Nov 26, 2020 · 2 comments
Closed

XRDTPC_TPROT is set to the value of XRDTPC_SPROT #1338

murrayc3 opened this issue Nov 26, 2020 · 2 comments

Comments

@murrayc3
Copy link
Contributor

The following code fragment shows that the value of XRDTPC_TPROT is set to the value of XRDTPC_SPROT. Line 305 incorrectly does eVec[i++] = sprBuff; when it should do eVec[i++] = tprBuff;.

[localhost] ~ > vi xrootd/src/XrdOfs/XrdOfsTPCProg.cc
...
292 // Export source protocol if present
293 //
294    char sprBuff[128];
295    if (Job->Info.Spr)
296       {snprintf(sprBuff, sizeof(sprBuff), "XRDTPC_SPROT=%s", Job->Info.Spr);
297        eVec[i++] = sprBuff;
298       }
299 
300 // Export target protocol if present
301 //
302    char tprBuff[128];
303    if (Job->Info.Tpr)
304       {snprintf(tprBuff, sizeof(tprBuff), "XRDTPC_TPROT=%s", Job->Info.Tpr);
305        eVec[i++] = sprBuff;
306       }
@xrootd-dev
Copy link

xrootd-dev commented Nov 30, 2020 via email

abh3 added a commit that referenced this issue Dec 1, 2020
[Server] XRDTPC_TPROT is set to the value of XRDTPC_SPROT #1338
@abh3
Copy link
Member

abh3 commented Dec 15, 2020

This was fixed by a supplied pull request.

@abh3 abh3 closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants