From 551ad509be294e963550d9e0f23149c76060cb7f Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 14 Oct 1997 19:44:11 +0000 Subject: [PATCH] Real fix this time - deals with the malloc(0) case.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10232 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/alt_prof.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/kadm5/alt_prof.c b/src/lib/kadm5/alt_prof.c index 1aad9f944..810ad200a 100644 --- a/src/lib/kadm5/alt_prof.c +++ b/src/lib/kadm5/alt_prof.c @@ -38,7 +38,6 @@ krb5_int32 len; int i; krb5_key_salt_tuple *knew; - if(len == 0) return 0; if((knew = (krb5_key_salt_tuple *) malloc((len ) * sizeof(krb5_key_salt_tuple)))) { memcpy(knew, ksalt, len * sizeof(krb5_key_salt_tuple)); -- 2.26.2