]> git.donarmstrong.com Git - unscd.git/commitdiff
Imported Upstream version 0.52
authorDon Armstrong <don@donarmstrong.com>
Thu, 3 Dec 2015 18:28:06 +0000 (12:28 -0600)
committerDon Armstrong <don@donarmstrong.com>
Thu, 3 Dec 2015 18:28:06 +0000 (12:28 -0600)
nscd.c

diff --git a/nscd.c b/nscd.c
index f1c4df84d196a10b9d86b5bddac9edbdf50aa1d4..93db75fa4e80df1c46f7129b66913373c70367b5 100644 (file)
--- a/nscd.c
+++ b/nscd.c
@@ -144,8 +144,9 @@ vda.linux@googlemail.com
  * 0.49   minor tweaks to messages
  * 0.50   add more files to watch for changes
  * 0.51   fix a case where we forget to refcount-- the cached entry
+ * 0.52   make free_refcounted_ureq() tolerant to pointers to NULLs
  */
-#define PROGRAM_VERSION "0.51"
+#define PROGRAM_VERSION "0.52"
 
 #define DEBUG_BUILD 1
 
@@ -1213,6 +1214,10 @@ static void free_refcounted_ureq(user_req **ureqp)
 {
        user_req *ureq = *ureqp;
 
+       /* (when exactly can this happen?) */
+       if (ureq == NULL)
+               return;
+
        if (!CACHED_ENTRY(ureq))
                return;