summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ldap/sdap.c')
-rw-r--r--src/providers/ldap/sdap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
index 1bb513ae6..01ba418a6 100644
--- a/src/providers/ldap/sdap.c
+++ b/src/providers/ldap/sdap.c
@@ -123,7 +123,10 @@ int sdap_parse_entry(TALLOC_CTX *memctx,
}
attrs = sysdb_new_attrs(tmp_ctx);
- if (!attrs) return ENOMEM;
+ if (!attrs) {
+ ret = ENOMEM;
+ goto done;
+ }
str = ldap_get_dn(sh->ldap, sm->msg);
if (!str) {