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;
|
const char *p, *q;
|
||||||
char *res;
|
char *res;
|
||||||
|
|
||||||
|
oid->length = 0;
|
||||||
|
oid->elements = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* First figure out how many numbers in the oid, then
|
* First figure out how many numbers in the oid, then
|
||||||
* calculate the compiled oid size.
|
* 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;
|
heim_oid o;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
oid_str->value = NULL;
|
_mg_buffer_zero(oid_str);
|
||||||
oid_str->length = 0;
|
|
||||||
|
|
||||||
ret = der_get_oid (oid->elements, oid->length, &o, &size);
|
ret = der_get_oid (oid->elements, oid->length, &o, &size);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
@@ -47,6 +47,6 @@ gss_release_cred(OM_uint32 *minor_status, gss_cred_id_t *cred_handle)
|
|||||||
free(cred);
|
free(cred);
|
||||||
|
|
||||||
*minor_status = 0;
|
*minor_status = 0;
|
||||||
*cred_handle = 0;
|
*cred_handle = GSS_C_NO_CREDENTIAL;
|
||||||
return (GSS_S_COMPLETE);
|
return (GSS_S_COMPLETE);
|
||||||
}
|
}
|
||||||
|
@@ -39,7 +39,7 @@ gss_release_oid_set(OM_uint32 *minor_status,
|
|||||||
if ((*set)->elements)
|
if ((*set)->elements)
|
||||||
free((*set)->elements);
|
free((*set)->elements);
|
||||||
free(*set);
|
free(*set);
|
||||||
*set = 0;
|
*set = GSS_C_NO_OID_SET;
|
||||||
}
|
}
|
||||||
return (GSS_S_COMPLETE);
|
return (GSS_S_COMPLETE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user