]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Produce an error if the initial search failed
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Nov 2022 21:34:48 +0000 (15:34 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Nov 2022 21:35:09 +0000 (15:35 -0600)
src/listen/ldap_sync/proto_ldap_sync_ldap.c

index b45c5df993243e7bb68fae9e4ceb8839c6163c69..321df52d0d544ab402dc9463098ca483e7db2849 100644 (file)
@@ -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);