Reset out variables.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19963 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -50,6 +50,9 @@ _gss_string_to_oid(const char* s, gss_OID oid)
|
||||
const char *p, *q;
|
||||
char *res;
|
||||
|
||||
oid->length = 0;
|
||||
oid->elements = NULL;
|
||||
|
||||
/*
|
||||
* First figure out how many numbers in the oid, then
|
||||
* calculate the compiled oid size.
|
||||
|
@@ -42,8 +42,7 @@ gss_oid_to_str(OM_uint32 *minor_status, gss_OID oid, gss_buffer_t oid_str)
|
||||
heim_oid o;
|
||||
char *p;
|
||||
|
||||
oid_str->value = NULL;
|
||||
oid_str->length = 0;
|
||||
_mg_buffer_zero(oid_str);
|
||||
|
||||
ret = der_get_oid (oid->elements, oid->length, &o, &size);
|
||||
if (ret) {
|
||||
|
@@ -47,6 +47,6 @@ gss_release_cred(OM_uint32 *minor_status, gss_cred_id_t *cred_handle)
|
||||
free(cred);
|
||||
|
||||
*minor_status = 0;
|
||||
*cred_handle = 0;
|
||||
*cred_handle = GSS_C_NO_CREDENTIAL;
|
||||
return (GSS_S_COMPLETE);
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ gss_release_oid_set(OM_uint32 *minor_status,
|
||||
if ((*set)->elements)
|
||||
free((*set)->elements);
|
||||
free(*set);
|
||||
*set = 0;
|
||||
*set = GSS_C_NO_OID_SET;
|
||||
}
|
||||
return (GSS_S_COMPLETE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user