Files
heimdal/lib/krb5
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-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-07-24 16:02:22 -07:00
2011-05-21 11:57:31 -07:00
2011-07-24 16:02:22 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2009-01-25 00:31:10 +00:00
2011-05-21 11:57:31 -07:00
2011-07-24 16:02:22 -07:00
2011-07-24 16:02:22 -07:00
2011-07-24 16:02:22 -07:00
2010-11-03 11:12:24 +00:00
2010-11-03 11:12:24 +00:00
2011-09-26 08:47:37 +02:00
2010-11-06 20:36:08 +01:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-07-24 16:02:22 -07:00
2011-07-24 16:02:22 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-03-12 19:29:00 -08:00
2011-07-24 16:02:22 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-07-24 16:02:22 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2009-05-04 06:16:51 +00:00
2011-05-21 11:57:31 -07:00
2011-09-25 17:49:06 +02:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2005-10-08 15:39:42 +00:00
2007-07-15 20:49:46 +00:00
2009-05-04 06:17:40 +00:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-08-10 09:21:32 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2009-05-04 06:17:40 +00:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-17 12:02:12 -04:00
2011-05-21 11:57:31 -07:00
2011-04-29 20:25:05 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2010-11-03 11:12:24 +00:00
2011-04-29 20:25:05 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-04-29 20:25:05 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2010-09-18 14:45:33 -07:00
2009-05-04 06:17:40 +00:00
2011-05-21 11:57:31 -07:00
2011-07-23 11:44:42 -07:00
2011-05-21 11:57:31 -07:00
2009-05-04 06:17:40 +00:00
2009-05-04 06:17:40 +00:00
2011-07-24 14:09:23 -07:00
2009-05-04 06:17:40 +00:00
2011-05-21 11:57:31 -07:00
2009-05-04 06:17:40 +00:00
2011-05-21 11:57:31 -07:00
2009-05-04 06:17:40 +00:00
2009-05-04 06:17:40 +00:00
2011-05-21 11:57:31 -07:00
2009-05-04 06:17:40 +00:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2009-05-04 06:17:40 +00:00
2010-05-30 13:37:07 -07:00
2009-05-04 06:17:40 +00:00
2010-11-03 11:12:24 +00:00
2011-05-21 11:57:31 -07:00
2009-05-04 06:17:40 +00:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-22 20:43:31 -07:00
2011-05-21 11:57:31 -07:00
2010-05-30 13:37:07 -07:00
2011-05-21 11:57:31 -07:00
2011-09-26 08:47:37 +02:00
2011-05-21 11:57:31 -07:00