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:59:33 -0400 |
commit | 34e67636d5b78834431d6852cea7b0fc205aa5cb (patch) | |
tree | 754f27f34767f0767b910dfeae088aef3ff9dbd8 | |
parent | a831315dafeb56b16c9c7939410630f3664fce70 (diff) | |
download | sssd_unused-34e67636d5b78834431d6852cea7b0fc205aa5cb.tar.gz sssd_unused-34e67636d5b78834431d6852cea7b0fc205aa5cb.tar.xz sssd_unused-34e67636d5b78834431d6852cea7b0fc205aa5cb.zip |
Check result of talloc_strdup() properly
Coverity 10737
-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 1bf14ba9..366985d6 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; } |