[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kdestroy coredump (fcc_close)



Leif Johansson <leifj@matematik.su.se> writes:
> fcc_close or some routine close to it does something nasty
> with memory causing a __libc_free segfault. Probably some
> memory gets freed twice or not allocated properly or something.

Right.  The appended patch seems to solve that problem for me.

/assar

Index: lib/krb5/fcache.c
===================================================================
RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/heimdal/lib/krb5/fcache.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -r1.15 -r1.16
--- fcache.c	1999/03/19 13:52:38	1.15
+++ fcache.c	1999/03/24 22:26:06	1.16
@@ -193,7 +193,7 @@
 
     erase_file(f);
   
-    return fcc_close (context, id);
+    return 0;
 }
 
 static krb5_error_code