* 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
+ * 0.53 fix INVALIDATE and SHUTDOWN requests being ignored
*/
-#define PROGRAM_VERSION "0.51"
+#define PROGRAM_VERSION "0.53"
#define DEBUG_BUILD 1
{
user_req *ureq = *ureqp;
+ /* (when exactly can this happen?) */
+ if (ureq == NULL)
+ return;
+
if (!CACHED_ENTRY(ureq))
return;
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);
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
) {