(gss_add_oid_set_member): set minor_status
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11753 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997 - 2001, 2003 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -50,8 +50,10 @@ OM_uint32 gss_add_oid_set_member (
|
|||||||
if (res != GSS_S_COMPLETE)
|
if (res != GSS_S_COMPLETE)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
if (present)
|
if (present) {
|
||||||
|
*minor_status = 0;
|
||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
|
}
|
||||||
|
|
||||||
n = (*oid_set)->count + 1;
|
n = (*oid_set)->count + 1;
|
||||||
tmp = realloc ((*oid_set)->elements, n * sizeof(gss_OID_desc));
|
tmp = realloc ((*oid_set)->elements, n * sizeof(gss_OID_desc));
|
||||||
@@ -62,5 +64,6 @@ OM_uint32 gss_add_oid_set_member (
|
|||||||
(*oid_set)->elements = tmp;
|
(*oid_set)->elements = tmp;
|
||||||
(*oid_set)->count = n;
|
(*oid_set)->count = n;
|
||||||
(*oid_set)->elements[n-1] = *member_oid;
|
(*oid_set)->elements[n-1] = *member_oid;
|
||||||
|
*minor_status = 0;
|
||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997 - 2001, 2003 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -50,8 +50,10 @@ OM_uint32 gss_add_oid_set_member (
|
|||||||
if (res != GSS_S_COMPLETE)
|
if (res != GSS_S_COMPLETE)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
if (present)
|
if (present) {
|
||||||
|
*minor_status = 0;
|
||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
|
}
|
||||||
|
|
||||||
n = (*oid_set)->count + 1;
|
n = (*oid_set)->count + 1;
|
||||||
tmp = realloc ((*oid_set)->elements, n * sizeof(gss_OID_desc));
|
tmp = realloc ((*oid_set)->elements, n * sizeof(gss_OID_desc));
|
||||||
@@ -62,5 +64,6 @@ OM_uint32 gss_add_oid_set_member (
|
|||||||
(*oid_set)->elements = tmp;
|
(*oid_set)->elements = tmp;
|
||||||
(*oid_set)->count = n;
|
(*oid_set)->count = n;
|
||||||
(*oid_set)->elements[n-1] = *member_oid;
|
(*oid_set)->elements[n-1] = *member_oid;
|
||||||
|
*minor_status = 0;
|
||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user