Files
heimdal/lib
Jeffrey Altman cbf126bede Permit NULL context to krb5_get_error_message()
Application developers have a tendency to use krb5_get_error_message()
as a drop in replacement for error_message() and under various
circumstances they pass in a NULL context.  This method works fine
for MIT's implementation which ignores the context but in Heimdal
passing in a NULL context would dump core.

This patch set modifies krb5_get_error_message() in order to
permit the passing of a NULL context.  First, if the context
is NULL, an attempt will be made to allocate one locally for
the purpose of evaluating the error code.  Second, if a local
context cannot be allocated, fall back on calling error_message().
If error_message() fails to return a string, then generate an
"unknown error" response.

Only if all of the above fails is NULL returned.

Change-Id: If4baf7d6c428cf0baf11c044b8dfd5c2b3cdf7e4
2011-09-27 14:26:26 -04:00
..
2011-08-10 09:22:52 -07:00
2011-09-23 15:26:32 -04:00
2011-09-25 19:00:01 +02:00
2011-05-22 17:28:24 -07:00
2011-05-21 11:57:31 -07:00
2011-07-23 11:18:21 -07:00
2011-09-23 09:06:02 -04:00
2011-09-23 13:27:21 +02:00
2011-07-30 14:15:14 -07:00