diff options
Diffstat (limited to 'usr/src/lib/libgss/g_dup_name.c')
-rw-r--r-- | usr/src/lib/libgss/g_dup_name.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr/src/lib/libgss/g_dup_name.c b/usr/src/lib/libgss/g_dup_name.c index 0ea8ea53aa..00c0a7da75 100644 --- a/usr/src/lib/libgss/g_dup_name.c +++ b/usr/src/lib/libgss/g_dup_name.c @@ -19,8 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. */ /* @@ -31,6 +30,7 @@ */ #include <mechglueP.h> +#include "gssapiP_generic.h" #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif @@ -108,8 +108,10 @@ gss_name_t *dest_name; major_status = generic_gss_copy_oid(minor_status, src_union->name_type, &dest_union->name_type); - if (major_status != GSS_S_COMPLETE) + if (major_status != GSS_S_COMPLETE) { + map_errcode(minor_status); goto allocation_failure; + } } /* @@ -119,8 +121,10 @@ gss_name_t *dest_name; major_status = generic_gss_copy_oid(minor_status, src_union->mech_type, &dest_union->mech_type); - if (major_status != GSS_S_COMPLETE) + if (major_status != GSS_S_COMPLETE) { + map_errcode(minor_status); goto allocation_failure; + } major_status = __gss_import_internal_name(minor_status, dest_union->mech_type, |