Improve mk_safe/mk_priv cleanup slightly
authorGreg Hudson <ghudson@mit.edu>
Thu, 22 Sep 2011 16:20:13 +0000 (16:20 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 22 Sep 2011 16:20:13 +0000 (16:20 +0000)
commit1be77ec64675cacc3acaf8a75e5eb2339c86af24
tree91799f6c2301a72f9e43dbb87772ecb62c283cf4
parent9252a953a12aa6c508531de5ba0e1eb9dd1d8b83
Improve mk_safe/mk_priv cleanup slightly

In both functions, initialize outbuf on error, and avoid putting
pointers into it before we reach the successful return stage.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25225 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/mk_priv.c
src/lib/krb5/krb/mk_safe.c