-
Notifications
You must be signed in to change notification settings - Fork 49
Fix SPNEGO crash #74
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
Fix SPNEGO crash #74
Conversation
The actual_mech is not promised till we complet the context. This fix a segfault when creating a SecurityContext with SPNEGO mech.
Seem trivial, silents compiler warning: warning: gssapi/raw/sec_contexts.pyx:367:8: Unreachable code
Thanks! |
@@ -204,7 +204,7 @@ flags=None, lifetime=None, channel_bindings=None, input_token=None) | |||
input_token_buffer.value = input_token | |||
input_token_buffer.length = len(input_token) | |||
|
|||
cdef gss_OID actual_mech_type | |||
cdef gss_OID actual_mech_type = GSS_C_NO_OID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the ;
from the end of this line
a couple of nits inline. Travis had a moment before, but it looks like you're just failing due to flake8 not liking the |
Hi Solly and Simo, On Mon, Aug 10, 2015 at 11:00 PM, Solly [email protected] wrote:
Thanks, I'll fix and add a commit. One more thing, what do you think - do we want to raise an error if the Regards, |
Isaac Boukris [email protected] writes:
I think we want to follow the behavior of the library, since it's either |
On Mon, Aug 10, 2015 at 11:36 PM, Robbie Harwood [email protected]
Make sense - thanks. |
Add appropairate authorization headers to test with SPNEGO too as discussed in #48 Requires recent version of python-gssapi module, see: pythongssapi/python-gssapi#74 Simo: Squashed original patches in one, removed trailing whitespaces and reworded the commit message. Reviewed-by: Simo Sorce <[email protected]> Closes #49
Hello,
This fix a segfault when trying to init_sec_context with SPNEGO mechanism.
Issue was found at (see there for an example to reproduce):
https://github.com/modauthgssapi/mod_auth_gssapi/pull/49
Thanks!