diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-08-03 13:32:11 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-08-03 13:50:54 -0400 |
commit | 8abeaf5fe4d7df4ebffd6b71754754739fbc5e4f (patch) | |
tree | a7c831b172b74a47882d006a975599b2a289c745 | |
parent | 8fb2b985f83c0d37d4c0119fa20538bfb1c17c55 (diff) | |
download | sssd-8abeaf5fe4d7df4ebffd6b71754754739fbc5e4f.tar.gz sssd-8abeaf5fe4d7df4ebffd6b71754754739fbc5e4f.tar.xz sssd-8abeaf5fe4d7df4ebffd6b71754754739fbc5e4f.zip |
Fix incorrect NULL check
-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 f6996c431..638ac69e3 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -64,7 +64,7 @@ errno_t sysdb_group_dn_name(struct sysdb_ctx *ctx, void *memctx, } *_name = talloc_strdup(memctx, ldb_dn_get_rdn_name(dn)); - if (!_name) { + if (!*_name) { talloc_zfree(dn); return ENOMEM; } |