From 4a7aa6aec9e7296f99f400979fbffe90bdc83200 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 2 Jul 1998 22:12:05 +0000 Subject: [PATCH] oid_ops.c (generic_gss_release_oid): Recognize our own (new) "self" oids so that we don't free static oid's. (exported_name and nt_service_name_v2). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10616 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/generic/ChangeLog | 6 ++++++ src/lib/gssapi/generic/oid_ops.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index 84efdd75a..74f13a4a3 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,9 @@ +1998-06-08 Theodore Ts'o + + * oid_ops.c (generic_gss_release_oid): Recognize our own "self" + oids so that we don't free static oid's. (exported_name + and nt_service_name_v2). + Sun May 24 22:01:29 1998 Theodore Y. Ts'o * util_buffer.c (g_make_string_buffer): Don't include the trailing diff --git a/src/lib/gssapi/generic/oid_ops.c b/src/lib/gssapi/generic/oid_ops.c index 980e936b7..0e8934393 100644 --- a/src/lib/gssapi/generic/oid_ops.c +++ b/src/lib/gssapi/generic/oid_ops.c @@ -59,7 +59,9 @@ generic_gss_release_oid(minor_status, oid) if ((*oid != gss_nt_user_name) && (*oid != gss_nt_machine_uid_name) && (*oid != gss_nt_string_uid_name) && - (*oid != gss_nt_service_name)) { + (*oid != gss_nt_service_name) && + (*oid != gss_nt_exported_name) && + (*oid != gss_nt_service_name_v2)) { free((*oid)->elements); free(*oid); } -- 2.26.2