From b830ab156f032e2a8823f1365da2ed6801427e8f Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 26 Apr 2010 23:36:24 +0200 Subject: Silence warnings with -O2 --- src/providers/ldap/sdap_async_accounts.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/providers/ldap/sdap_async_accounts.c') 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; -- cgit