diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-08-29 13:07:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:03:10 -0500 |
commit | 0b91f3916430d0271eab867675d44c5439de40c2 (patch) | |
tree | 8740c4d73ec89cd60125117ed45e80b771e9e06b /source4/ldap_server | |
parent | b867b3c1470ee260fe2fd14f628728f01f7917ac (diff) | |
download | samba-0b91f3916430d0271eab867675d44c5439de40c2.tar.gz samba-0b91f3916430d0271eab867675d44c5439de40c2.tar.bz2 samba-0b91f3916430d0271eab867675d44c5439de40c2.zip |
r24780: More work allowing libutil to be used by external users.
(This used to be commit 31993cf67b816a184a4a4e92ef8ca2532c797190)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index c42ad285ec..0de76052d1 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -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; } |