diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap.c | 5 | ||||
-rw-r--r-- | src/providers/ldap/sdap_range.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index 1bb513ae..01ba418a 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) { diff --git a/src/providers/ldap/sdap_range.c b/src/providers/ldap/sdap_range.c index 295b6605..a26443c8 100644 --- a/src/providers/ldap/sdap_range.c +++ b/src/providers/ldap/sdap_range.c @@ -104,7 +104,8 @@ errno_t sdap_parse_range(TALLOC_CTX *mem_ctx, DEBUG(SSSDBG_TRACE_LIBS, ("[%s] contained the last set of values for this attribute\n", attr_desc)); - return EOK; + ret = EOK; + goto done; } *range_offset = strtouint32(end_range, &endptr, 10); |