diff options
author | Simo Sorce <simo@redhat.com> | 2012-05-30 11:09:56 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-07-26 16:27:44 -0400 |
commit | 8e4fa81d3261bf65baff0e86e8ef0c65f81f347b (patch) | |
tree | 57eb81ecf1950fca079acb3636b8a37b2f0b2946 /proxy/src/mechglue | |
parent | d9cf94921760c84a799491f929e2ffd2649dfb65 (diff) | |
download | gss-proxy-8e4fa81d3261bf65baff0e86e8ef0c65f81f347b.tar.gz gss-proxy-8e4fa81d3261bf65baff0e86e8ef0c65f81f347b.tar.xz gss-proxy-8e4fa81d3261bf65baff0e86e8ef0c65f81f347b.zip |
Fix segfaults when NULL buffer is passed in.
Diffstat (limited to 'proxy/src/mechglue')
-rw-r--r-- | proxy/src/mechglue/gpm_init_sec_context.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/proxy/src/mechglue/gpm_init_sec_context.c b/proxy/src/mechglue/gpm_init_sec_context.c index 2e4c171..4a8c557 100644 --- a/proxy/src/mechglue/gpm_init_sec_context.c +++ b/proxy/src/mechglue/gpm_init_sec_context.c @@ -79,9 +79,11 @@ OM_uint32 gpm_init_sec_context(OM_uint32 *minor_status, } } - ret = gp_conv_buffer_to_gssx_alloc(input_token, &arg->input_token); - if (ret) { - goto done; + if (input_token != GSS_C_NO_BUFFER) { + ret = gp_conv_buffer_to_gssx_alloc(input_token, &arg->input_token); + if (ret) { + goto done; + } } /* execute proxy request */ |