allow multiple calls to krb5_get_error_message to retrieve message
authorKen Raeburn <raeburn@mit.edu>
Wed, 28 Jun 2006 05:31:52 +0000 (05:31 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 28 Jun 2006 05:31:52 +0000 (05:31 +0000)
commite24eee09ff8de9bcdc7ba8d93519651d1ba3fa62
tree954a4384dafbec50b1f2bb1229d90046092ce2ac
parentaef096c6896ed50e4df03361c3b049df91b3f6f0
allow multiple calls to krb5_get_error_message to retrieve message

(krb5int_get_error): Don't discard old message if the error codes don't match.
Try a little harder not to keep messages in the scratch buffer.  Return a copy
of the message, or "out of memory" in the scratch buffer.
(krb5int_vset_error): Try a little harder not to keep messages in the scratch
buffer.

ticket: new
target_version: 1.5

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18246 dc483132-0cff-0310-8789-dd5450dbe970
src/util/support/errors.c