r24780: More work allowing libutil to be used by external users.
[kai/samba.git] / source4 / ldap_server / ldap_server.c
index c42ad285ec3658ae463580b33a41e26d167d183d..0de76052d1c3c66398af3c95b19a76f5a1ee5945 100644 (file)
@@ -98,6 +98,7 @@ static void ldapsrv_process_message(struct ldapsrv_connection *conn,
        /* build all the replies into a single blob */
        while (call->replies) {
                DATA_BLOB b;
+               bool ret;
 
                msg = call->replies->msg;
                if (!ldap_encode(msg, &b, call)) {
@@ -106,12 +107,12 @@ static void ldapsrv_process_message(struct ldapsrv_connection *conn,
                        return;
                }
 
-               status = data_blob_append(call, &blob, b.data, b.length);
+               ret = data_blob_append(call, &blob, b.data, b.length);
                data_blob_free(&b);
 
                talloc_set_name_const(blob.data, "Outgoing, encoded LDAP packet");
 
-               if (!NT_STATUS_IS_OK(status)) {
+               if (!ret) {
                        talloc_free(call);
                        return;
                }