Message ID | 1351102124-24036-4-git-send-email-steved@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/g_inq_cred.c b/src/g_inq_cred.c index 9f531d8..8367a56 100644 --- a/src/g_inq_cred.c +++ b/src/g_inq_cred.c @@ -152,13 +152,15 @@ gss_OID_set * mechanisms; union_cred->count); if ((*mechanisms)->elements == NULL) { *minor_status = ENOMEM; + free(*mechanisms); + *mechanisms = GSS_C_NO_OID_SET; return (GSS_S_FAILURE); } for (i=0; i < union_cred->count; i++) { - status = generic_gss_copy_oid(minor_status, + status = generic_gss_add_oid_set_member(minor_status, &union_cred->mechs_array[i], - &((*mechanisms)->elements[i])); + mechanisms); if (status != GSS_S_COMPLETE) break; }