From da376b3c4805c51ca1355c6b1fe320ebde176d8c Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 11 Oct 2009 17:19:00 -0700 Subject: [PATCH] [HEIMDAL-646] malloc(0) checks for AIX --- kadmin/del_enctype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kadmin/del_enctype.c b/kadmin/del_enctype.c index f8509e2fe..12a377761 100644 --- a/kadmin/del_enctype.c +++ b/kadmin/del_enctype.c @@ -84,7 +84,7 @@ del_enctype(void *opt, int argc, char **argv) } new_key_data = malloc(princ.n_key_data * sizeof(*new_key_data)); - if (new_key_data == NULL) { + if (new_key_data == NULL && princ.n_key_data != 0) { krb5_warnx (context, "out of memory"); goto out; } -- 2.11.4.GIT