diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-03-14 16:22:50 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-16 14:10:27 -0400 |
commit | 5612634d63d6c07be2b4cb5faa25528b789136a6 (patch) | |
tree | 9f93b7a769337482a995a4ad1fc834fff1d735d1 /src/responder/common | |
parent | f65143669a49b8394dbd99a2215392a36e7aef7a (diff) | |
download | sssd-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.c | 3 |
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; } |