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

Re: convert_hdb dumps core



Leif Johansson <leifj@matematik.su.se> writes:

> Any thougths???

Well...

/Johan

--- convert_db.c	1999/02/22 09:53:06	1.3
+++ convert_db.c	1999/02/25 13:11:48	1.4
@@ -40,7 +40,7 @@
 #include "hdb_locl.h"
 #include "getarg.h"
 
-RCSID("$Id: convert_db.c,v 1.3 1999/02/22 09:53:06 joda Exp $");
+RCSID("$Id: convert_db.c,v 1.4 1999/02/25 13:11:48 joda Exp $");
 
 static krb5_error_code
 func(krb5_context context, HDB *db, hdb_entry *entry, void *data)
@@ -84,7 +84,7 @@
     entry->keys.len = save_len;
     entry->keys.val = save_val;
     for(i = 0; i < n; i++) 
-	free_Key(&k[n]);
+	free_Key(&k[i]);
     free(k);
     return 0;
 }