From 8abeaf5fe4d7df4ebffd6b71754754739fbc5e4f Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 3 Aug 2010 13:32:11 -0400 Subject: Fix incorrect NULL check --- src/db/sysdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit