summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-03-23 10:30:13 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-03-23 10:59:33 -0400
commit34e67636d5b78834431d6852cea7b0fc205aa5cb (patch)
tree754f27f34767f0767b910dfeae088aef3ff9dbd8
parenta831315dafeb56b16c9c7939410630f3664fce70 (diff)
downloadsssd-34e67636d5b78834431d6852cea7b0fc205aa5cb.tar.gz
sssd-34e67636d5b78834431d6852cea7b0fc205aa5cb.tar.xz
sssd-34e67636d5b78834431d6852cea7b0fc205aa5cb.zip
Check result of talloc_strdup() properly
Coverity 10737
-rw-r--r--src/db/sysdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 1bf14ba9f..366985d6c 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;
}