summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_accounts.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-04-26 23:36:24 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-04-30 07:51:19 -0400
commitb830ab156f032e2a8823f1365da2ed6801427e8f (patch)
treea3a9bb5a7fcf31d45889199d1876f3025b5bdfc8 /src/providers/ldap/sdap_async_accounts.c
parent0d72f05cc87f42a8c2856c96501c64d69541be00 (diff)
downloadsssd-b830ab156f032e2a8823f1365da2ed6801427e8f.tar.gz
sssd-b830ab156f032e2a8823f1365da2ed6801427e8f.tar.xz
sssd-b830ab156f032e2a8823f1365da2ed6801427e8f.zip
Silence warnings with -O2
Diffstat (limited to 'src/providers/ldap/sdap_async_accounts.c')
-rw-r--r--src/providers/ldap/sdap_async_accounts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c
index bdaa9e9e2..f949e46a0 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -56,10 +56,12 @@ static int sdap_save_user(TALLOC_CTX *memctx,
ret = sysdb_attrs_get_el(attrs,
opts->user_map[SDAP_AT_USER_NAME].sys_name, &el);
- if (ret) goto fail;
if (el->num_values == 0) {
ret = EINVAL;
- goto fail;
+ }
+ if (ret) {
+ DEBUG(1, ("Failed to save the user - entry has no name attribute\n"));
+ return ret;
}
name = (const char *)el->values[0].data;