Project

General

Profile

Bug #172 ยป illumos-172.txt

Gordon Ross, 2010-09-08 11:26 AM

 
1
--- g_accept_sec_context.c.orig
2
+++ g_accept_sec_context.c
3
@@ -223,6 +223,8 @@
4
 		 * First call the mechanism specific display_name()
5
 		 * then call gss_import_name() to create
6
 		 * the union name struct cast to src_name
7
+		 * NB: __gss_convert_name_to_union_name will
8
+		 * "consume" (free) the name.
9
 		 */
10
 		if (internal_name != NULL) {
11
 			temp_status = __gss_convert_name_to_union_name(
12
@@ -235,11 +237,6 @@
13
 					(void) gss_release_buffer(
14
 						&t_minstat,
15
 						output_token);
16
-				if (internal_name != GSS_C_NO_NAME)
17
-					mech->gss_release_name(
18
-						mech->context,
19
-						&t_minstat,
20
-						&internal_name);
21
 				return (temp_status);
22
 			}
23
 			if (src_name != NULL) {
    (1-1/1)