diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-23 10:30:13 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-23 10:58:57 -0400 |
commit | ff265d170e73d7347c718ee6cf690695bba8caeb (patch) | |
tree | 8938bd22d3feb2c7943392fffb80b60d42d125f8 /src/db | |
parent | 1972fddb2e375787dfa87c77190346d7c8e2dbd3 (diff) | |
download | sssd-ff265d170e73d7347c718ee6cf690695bba8caeb.tar.gz sssd-ff265d170e73d7347c718ee6cf690695bba8caeb.tar.bz2 sssd-ff265d170e73d7347c718ee6cf690695bba8caeb.zip |
Check result of talloc_strdup() properly
Coverity 10737
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 0b02e9fa..cd785219 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -235,7 +235,7 @@ errno_t sysdb_get_rdn(struct sysdb_ctx *ctx, void *memctx, } *_name = talloc_strdup(memctx, attr_name); - if (!_name) { + if (!*_name) { ret = ENOMEM; goto done; } |