Real fix this time - deals with the malloc(0) case..
authorEzra Peisach <epeisach@mit.edu>
Tue, 14 Oct 1997 19:44:11 +0000 (19:44 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 14 Oct 1997 19:44:11 +0000 (19:44 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10232 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/alt_prof.c

index 1aad9f94435fe72c2efde7da1d5753d8bea04ec3..810ad200a3a412a0fa6a8d9d6288b185b443c30c 100644 (file)
@@ -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));