* g_cnffile.c (krb__get_srvtabname): Fix up to not free context
authorTom Yu <tlyu@mit.edu>
Sun, 5 Apr 1998 23:57:09 +0000 (23:57 +0000)
committerTom Yu <tlyu@mit.edu>
Sun, 5 Apr 1998 23:57:09 +0000 (23:57 +0000)
unless it is valid.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10514 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/ChangeLog
src/lib/krb4/g_cnffile.c

index 2dc4d2aab8100a2cea82671586359c05a1bf148c..c3748755d17e282961addb7b386da76f0fd8f828 100644 (file)
@@ -1,3 +1,8 @@
+Sun Apr  5 19:51:21 1998  Tom Yu  <tlyu@mit.edu>
+
+       * g_cnffile.c (krb__get_srvtabname): Fix up to not free context
+       unless it is valid.
+
 Wed Feb 18 16:17:49 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
index 12edf28740d5a197ec2eae1bce91ad9681ee134b..569789f8949167e3d11127402025d0bf0f6f3f2b 100644 (file)
@@ -70,7 +70,8 @@ krb__get_srvtabname(default_srvtabname)
        }else {
            retname = strdup(default_srvtabname);
        }
-       krb5_free_context(context);
+       if (context != NULL)
+               krb5_free_context(context);
        return retname;
 }