X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=nscd.c;h=93db75fa4e80df1c46f7129b66913373c70367b5;hb=f4c482e986646da40e801a46f566f9d0dbfb43cd;hp=f1c4df84d196a10b9d86b5bddac9edbdf50aa1d4;hpb=1836138cce7db5b3cebce33a516e76ad4a20a5ee;p=unscd.git diff --git a/nscd.c b/nscd.c index f1c4df8..93db75f 100644 --- 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;