#209 Improve "bug in ldap_entry_reconstruct()" message
Opened 2 years ago by keesghs. Modified 2 years ago

This log_bug message only prints "protocol violation: attempt to reconstruct non-existing entry"

It would help understanding the problem if at least uuid is printed as well.

isc_result_t
ldap_entry_reconstruct(isc_mem_t *mctx, mldapdb_t *mldap, struct berval *uuid,
               ldap_entry_t **entryp) {
    isc_result_t result;
    ldap_entry_t *entry = NULL;
    ld_string_t *str = NULL;
    metadb_node_t *node = NULL;

    CHECK(str_new(mctx, &str));
    result = mldap_entry_read(mldap, uuid, &node);
    if (result != ISC_R_SUCCESS) {
        log_bug("protocol violation: "
            "attempt to reconstruct non-existing entry");
        goto cleanup;
    }

Login to comment on this ticket.

Metadata