oid_ops.c (generic_gss_release_oid): Recognize our own (new) "self"
authorTheodore Tso <tytso@mit.edu>
Thu, 2 Jul 1998 22:12:05 +0000 (22:12 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 2 Jul 1998 22:12:05 +0000 (22:12 +0000)
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
src/lib/gssapi/generic/oid_ops.c

index 84efdd75add37c7d7366a0c671fc62befab72152..74f13a4a3e54a394ecc391f81d2e5a9918581781 100644 (file)
@@ -1,3 +1,9 @@
+1998-06-08  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * util_buffer.c (g_make_string_buffer): Don't include the trailing
index 980e936b746847d29bcaef1ba8a749ba943951ff..0e893439358473f6d231d295397c2a61f281f979 100644 (file)
@@ -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);
     }