]> git.donarmstrong.com Git - unscd.git/commitdiff
Update upstream source from tag 'upstream/0.53'
authorDon Armstrong <don@donarmstrong.com>
Sat, 28 Apr 2018 00:20:34 +0000 (17:20 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 28 Apr 2018 00:20:34 +0000 (17:20 -0700)
Update to upstream version '0.53'
with Debian dir 8fbc6a5ea8ef29d75303089c0f8f71482f70f8fa

.gitignore [deleted file]
nscd.c

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 8efb205..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-*.man
-*.debhelper
-*.substvars
-/debian/unscd.debhelper.log
-/debian/files
-/nscd
-/debian/unscd/
\ No newline at end of file
diff --git a/nscd.c b/nscd.c
index 93db75fa4e80df1c46f7129b66913373c70367b5..35502d7bedb175cae7bf863206f75c2594273382 100644 (file)
--- a/nscd.c
+++ b/nscd.c
@@ -145,8 +145,9 @@ vda.linux@googlemail.com
  * 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
+ * 0.53   fix INVALIDATE and SHUTDOWN requests being ignored
  */
-#define PROGRAM_VERSION "0.52"
+#define PROGRAM_VERSION "0.53"
 
 #define DEBUG_BUILD 1
 
@@ -1600,12 +1601,6 @@ static int handle_client(int i)
                close_client(i);
                return 0;
        }
-       srv = type_to_srv[ureq->type];
-       if (!config.srv_enable[srv]) {
-               log(L_INFO, "service %d is disabled, dropping", srv);
-               close_client(i);
-               return 0;
-       }
 
        hex_dump(cinfo[i].ureq, cinfo[i].bytecnt);
 
@@ -1642,6 +1637,13 @@ static int handle_client(int i)
                return 0;
        }
 
+       srv = type_to_srv[ureq->type];
+       if (!config.srv_enable[srv]) {
+               log(L_INFO, "service %d is disabled, dropping", srv);
+               close_client(i);
+               return 0;
+       }
+
        if (ureq->type != GETHOSTBYADDR
         && ureq->type != GETHOSTBYADDRv6
        ) {