It's not an out-of-space error if malloc(0) returns 0.
authorSam Hartman <hartmans@mit.edu>
Sat, 27 Jul 1996 02:23:23 +0000 (02:23 +0000)
committerSam Hartman <hartmans@mit.edu>
Sat, 27 Jul 1996 02:23:23 +0000 (02:23 +0000)
commit26415263231eaafd37f5c361a63e5ab75feb8703
treec920d5566e6f0425cc0e857a539a202b9a27c263
parentfea030df3d04c20bebd81ff874a2d54eae9133e6
It's not an out-of-space error if malloc(0) returns 0.
So, when copying key_data, only call malloc if the length
is non-zero.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8850 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/kadm5/srv/ChangeLog
src/lib/kadm5/srv/svr_principal.c