summaryrefslogtreecommitdiff
path: root/src/responder/common
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-03-14 16:22:50 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-03-16 14:10:27 -0400
commit5612634d63d6c07be2b4cb5faa25528b789136a6 (patch)
tree9f93b7a769337482a995a4ad1fc834fff1d735d1 /src/responder/common
parentf65143669a49b8394dbd99a2215392a36e7aef7a (diff)
downloadsssd-5612634d63d6c07be2b4cb5faa25528b789136a6.tar.gz
sssd-5612634d63d6c07be2b4cb5faa25528b789136a6.tar.bz2
sssd-5612634d63d6c07be2b4cb5faa25528b789136a6.zip
Free entry found in negative cache
Diffstat (limited to 'src/responder/common')
-rw-r--r--src/responder/common/negcache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c
index fab549c1..47f4c323 100644
--- a/src/responder/common/negcache.c
+++ b/src/responder/common/negcache.c
@@ -82,6 +82,8 @@ static int sss_ncache_check_str(struct sss_nc_ctx *ctx, char *str, int ttl)
DEBUG(8, ("Checking negative cache for [%s]\n", str));
+ data.dptr = NULL;
+
ret = string_to_tdb_data(str, &key);
if (ret != EOK) goto done;
@@ -127,6 +129,7 @@ done:
ret = ENOENT;
}
+ free(data.dptr);
return ret;
}