pull up r20023 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 1 Oct 2007 23:18:25 +0000 (23:18 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 1 Oct 2007 23:18:25 +0000 (23:18 +0000)
 r20023@cathode-dark-space:  jaltman | 2007-09-30 10:42:22 -0400
 ticket: 5753

 When there is no ImagePath value for a module it indicates
 that the module has not been installed.  Do not report an
 error to the end user for uninstalled modules.  This will
 only annoy the user and there is probably nothing the user
 can do about it.  Perhaps the user uninstalled the module
 intentionally.  The fact that there is still a HKCU key
 remaining is not an indication that the module is in use.

ticket: 5753
version_fixed: 1.6.3

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20063 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/identity/kmm/kmm_registrar.c

index da7ab570bccb7fdf72609c4161f1b157c2327746..75f3b782aeffeac1c36a53b7e1bc1c127865801a 100644 (file)
@@ -683,7 +683,11 @@ void kmmint_init_module(kmm_module_i * m) {
         m->path = PMALLOC(sz);
         khc_read_string(csp_mod, KMM_VALNAME_IMAGEPATH, m->path, &sz);
     } else {
-        _report_mr0(KHERR_ERROR, MSG_IM_NOT_REGISTERED);
+       /* 
+        * If there is no image path, then the module has not been 
+        * installed.  Do not report an error and bother the user.
+        *   _report_mr0(KHERR_ERROR, MSG_IM_NOT_REGISTERED);
+        */
 
         m->state = KMM_MODULE_STATE_FAIL_NOT_REGISTERED;
         goto _exit;