diff options
| -rw-r--r-- | xlators/performance/nl-cache/src/nl-cache.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/nl-cache/src/nl-cache.c b/xlators/performance/nl-cache/src/nl-cache.c index 8a130dc2355..a72f03993aa 100644 --- a/xlators/performance/nl-cache/src/nl-cache.c +++ b/xlators/performance/nl-cache/src/nl-cache.c @@ -198,7 +198,8 @@ nlc_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,          local = frame->local;          conf = this->private; -        GF_VALIDATE_OR_GOTO (this->name, local, out); +        if (!local) +                goto out;          /* Donot add to pe, this may lead to duplicate entry and           * requires search before adding if list of strings */  | 
