From: Arran Cudbard-Bell Date: Thu, 17 Nov 2022 21:34:48 +0000 (-0600) Subject: Produce an error if the initial search failed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d468e4f4a8460486876bd09984ebeedebd62ccc;p=thirdparty%2Ffreeradius-server.git Produce an error if the initial search failed --- diff --git a/src/listen/ldap_sync/proto_ldap_sync_ldap.c b/src/listen/ldap_sync/proto_ldap_sync_ldap.c index b45c5df9932..321df52d0d5 100644 --- a/src/listen/ldap_sync/proto_ldap_sync_ldap.c +++ b/src/listen/ldap_sync/proto_ldap_sync_ldap.c @@ -849,8 +849,8 @@ static void _proto_ldap_socket_open_read(fr_event_list_t *el, int fd, UNUSED int * res_timeout from the configuration. */ status = fr_ldap_result(&result, NULL, ldap_conn, dir_ctx->msgid, LDAP_MSG_ALL, NULL, fr_time_delta_from_msec(0)); - if (status != LDAP_PROC_SUCCESS) { + PERROR("Failed querying for directory type"); if (result) ldap_msgfree(result); error: talloc_free(dir_ctx);