svn commit: r281033 - stable/10/lib/libc/nls

Bryan Drewery bdrewery at FreeBSD.org
Fri Apr 3 17:16:07 UTC 2015


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

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/10/lib/libc/nls/msgcat.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/nls/msgcat.c
==============================================================================
--- stable/10/lib/libc/nls/msgcat.c	Fri Apr  3 17:14:19 2015	(r281032)
+++ stable/10/lib/libc/nls/msgcat.c	Fri Apr  3 17:16:05 2015	(r281033)
@@ -83,6 +83,7 @@ __FBSDID("$FreeBSD$");
 				  	np->name = strdup(n);			\
 					np->path = NULL;			\
 					np->catd = NLERR;			\
+					np->refcount = 0;			\
 					np->lang = (l == NULL) ? NULL :		\
 					    strdup(l);				\
 					np->caterrno = e;			\


More information about the svn-src-all mailing list