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

Correct external handling logic. #611

Merged
merged 1 commit into from
Nov 2, 2017

Conversation

bbockelm
Copy link
Contributor

@bbockelm bbockelm commented Nov 1, 2017

The test to see if there is an external plugin was inverted, meaning the wrong case in the conditional was always called. This fixes the logic, avoiding a SIGSEGV I encountered while testing the improved XrdHttp code.

Additionally, this reverses the order of evaluation -- checking the (cheap, common) pointer value first, then invoking a function.

@ffurano

The test to see if there is an external plugin was inverted, meaning
the wrong case in the conditional was always called.

Additionally, this reverses the order of evaluation -- checking the
(cheap, common) pointer value first, then invoking a function.
@ffurano ffurano merged commit 30326f6 into xrootd:master Nov 2, 2017
@ffurano
Copy link
Contributor

ffurano commented Nov 2, 2017

Hi Brian, I just merged, as it makes sense to me, even if I was not experiencing this. Do you regularly use multiple plugins ? Thank you!

@bbockelm
Copy link
Contributor Author

bbockelm commented Nov 2, 2017

@ffurano - I was hitting a SIGSEGV with no plugins present.

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

Successfully merging this pull request may close these issues.

None yet

2 participants