Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 212921 Details for
Bug 314651
gss_init_sec_context() mechglue wrapper doesn't handle ret_flags right
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
currently-proposed fix
krb5-trunk-server_delegation.patch (text/plain), 1.46 KB, created by
Nalin Dahyabhai
on 2007-10-01 21:50:30 UTC
(
hide
)
Description:
currently-proposed fix
Filename:
MIME Type:
Creator:
Nalin Dahyabhai
Created:
2007-10-01 21:50:30 UTC
Size:
1.46 KB
patch
obsolete
>If the application calling gss_accept_sec_context() doesn't pass a value >for ret_flags, we'd never be able to check if credentials had been delegated. > >The passed-in ret_flags value is a pointer to a bitfield, so the comparision >as-written was not likely to work as expected. > >Index: src/lib/gssapi/mechglue/g_accept_sec_context.c >=================================================================== >--- src/lib/gssapi/mechglue/g_accept_sec_context.c (revision 20038) >+++ src/lib/gssapi/mechglue/g_accept_sec_context.c (working copy) >@@ -112,6 +112,7 @@ > > { > OM_uint32 status, temp_status, temp_minor_status; >+ OM_uint32 temp_ret_flags = 0; > gss_union_ctx_id_t union_ctx_id; > gss_union_cred_t union_cred; > gss_cred_id_t input_cred_handle = GSS_C_NO_CREDENTIAL; >@@ -202,7 +203,7 @@ > &internal_name, > mech_type, > output_token, >- ret_flags, >+ ret_flags ? &temp_ret_flags : NULL, > time_rec, > d_cred ? &tmp_d_cred : NULL); > >@@ -248,7 +249,7 @@ > } > > /* Ensure we're returning correct creds format */ >- if ((ret_flags && GSS_C_DELEG_FLAG) && >+ if ((temp_ret_flags & GSS_C_DELEG_FLAG) && > tmp_d_cred != GSS_C_NO_CREDENTIAL) { > gss_union_cred_t d_u_cred = NULL; > >@@ -335,6 +336,8 @@ > if (src_name == NULL && tmp_src_name != NULL) > (void) gss_release_name(&temp_minor_status, > &tmp_src_name); >+ if (ret_flags != NULL) >+ *ret_flags = temp_ret_flags; > return (status); > } else { >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 314651
: 212921