summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-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;
}