summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
diff options
context:
space:
mode:
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 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;
}