summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
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:58:57 -0400
commitff265d170e73d7347c718ee6cf690695bba8caeb (patch)
tree8938bd22d3feb2c7943392fffb80b60d42d125f8 /src/db/sysdb.c
parent1972fddb2e375787dfa87c77190346d7c8e2dbd3 (diff)
downloadsssd-ff265d170e73d7347c718ee6cf690695bba8caeb.tar.gz
sssd-ff265d170e73d7347c718ee6cf690695bba8caeb.tar.xz
sssd-ff265d170e73d7347c718ee6cf690695bba8caeb.zip
Check result of talloc_strdup() properly
Coverity 10737
Diffstat (limited to 'src/db/sysdb.c')
-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 0b02e9fa1..cd785219b 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;
}