heimdal: import heimdal's trunk svn rev 23697 + lorikeet-heimdal patches
[samba.git] / source4 / heimdal / lib / krb5 / keytab.c
index 09e130d8501dfa90cd323a61dd5cb6c156432ba4..f3e6b9e8f4c8244322a5c295285a836541d7648b 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "krb5_locl.h"
 
-RCSID("$Id: keytab.c 23316 2008-06-23 04:32:32Z lha $");
+RCSID("$Id$");
 
 /*
  * Register a new keytab in `ops'
@@ -341,6 +341,7 @@ krb5_kt_get_entry(krb5_context context,
     if (ret) {
        /* This is needed for krb5_verify_init_creds, but keep error
         * string from previous error for the human. */
+       context->error_code = KRB5_KT_NOTFOUND;
        return KRB5_KT_NOTFOUND;
     }