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

Fix a segfault in mechglue #103

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/client/gpm_indicate_mechs.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ static uint32_t gpm_copy_gss_OID_set(uint32_t *minor_status,
uint32_t ret_maj;
uint32_t ret_min;

if (oldset == GSS_C_NO_OID_SET) {
*newset = GSS_C_NO_OID_SET;
return GSS_S_COMPLETE;
}

ret_maj = gss_create_empty_oid_set(&ret_min, &n);
if (ret_maj) {
*minor_status = ret_min;
Expand Down
2 changes: 1 addition & 1 deletion src/gp_creds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ uint32_t gp_cred_allowed(uint32_t *min,
/* if we find an impersonator entry we bail as that is not authorized,
* *unless* the target is the impersonator itself! If the operation
* were authorized then gpcall->service->allow_const_deleg would have
* caused the ealier check to return GSS_S_COMPLETE already */
* caused the earlier check to return GSS_S_COMPLETE already */
if (impersonator != NULL) {
ret_maj = check_impersonator_name(&ret_min, target_name, impersonator);
}
Expand Down
2 changes: 1 addition & 1 deletion src/mechglue/gpp_init_sec_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ OM_uint32 gssi_init_sec_context(OM_uint32 *minor_status,
}
cred_handle->remote = out_cred;
out_cred = NULL;
/* failuire is not fatal */
/* failure is not fatal */
(void)gpp_store_remote_creds(&tmin,
cred_handle->default_creds,
&cred_handle->store,
Expand Down
Loading