Author: bdrewery
Date: Fri Apr  3 17:17:17 2015
New Revision: 281034
URL: https://svnweb.freebsd.org/changeset/base/281034

Log:
  MFC r278530:
  
    When catopen(3) returns an error, it caches the result of that error from
    r202992. The refcount on the cache entry is not initialized, so any attempt
    to clean the cache will skip over this item since it likely has a >0 value.
  
    This change is currently a NOP.

Modified:
  stable/9/lib/libc/nls/msgcat.c
Directory Properties:
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/nls/msgcat.c
==============================================================================
--- stable/9/lib/libc/nls/msgcat.c      Fri Apr  3 17:16:05 2015        
(r281033)
+++ stable/9/lib/libc/nls/msgcat.c      Fri Apr  3 17:17:17 2015        
(r281034)
@@ -82,6 +82,7 @@ __FBSDID("$FreeBSD$");
                                  if (np != NULL) {                             
\
                                        np->name = strdup(n);                   
\
                                        np->path = NULL;                        
\
+                                       np->refcount = 0;                       
\
                                        np->lang = (l == NULL) ? NULL :         
\
                                            strdup(l);                          
\
                                        np->caterrno = e;                       
\
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to