svn commit: lorikeet r649 - in trunk/heimdal/lib/krb5: .
abartlet at samba.org
abartlet at samba.org
Sun Nov 5 23:39:19 GMT 2006
Author: abartlet
Date: 2006-11-05 23:39:19 +0000 (Sun, 05 Nov 2006)
New Revision: 649
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=649
Log:
Add a default error message for the most common reason for failing to
find the PAC: it doesn't actually exist...
Andrew Bartlett
Modified:
trunk/heimdal/lib/krb5/ticket.c
Changeset:
Modified: trunk/heimdal/lib/krb5/ticket.c
===================================================================
--- trunk/heimdal/lib/krb5/ticket.c 2006-11-04 06:43:11 UTC (rev 648)
+++ trunk/heimdal/lib/krb5/ticket.c 2006-11-05 23:39:19 UTC (rev 649)
@@ -117,6 +117,10 @@
goto out;
}
+ /* Default case to match ret = ENOENT above */
+ krb5_set_error_string(context, "Authorization data does not contain element of type %d",
+ type);
+
/*
* Only copy out the element the first time we get to it, we need
* to run over the whole authorization data fields to check if
@@ -224,6 +228,9 @@
krb5_data_free(data);
*found = 0;
}
+ } else {
+ /* clear default error string from above */
+ krb5_clear_error_string(context);
}
return ret;
}
More information about the samba-cvs
mailing list