From 5bfb2c6578cf1d8a79853d83f567ea32b02b4e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 29 Mar 2009 09:03:05 +0000 Subject: [PATCH] use calloc to allocate salt git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24989 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kadmin/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kadmin/load.c b/kadmin/load.c index a75bd7a37..09f1622fb 100644 --- a/kadmin/load.c +++ b/kadmin/load.c @@ -203,7 +203,7 @@ parse_keys(hdb_entry *ent, char *str) p++; p_len = strlen(p); - key->salt = malloc(sizeof(*key->salt)); + key->salt = calloc(1, sizeof(*key->salt)); if (key->salt == NULL) krb5_errx (context, 1, "malloc: out of memory"); key->salt->type = type;