diff options
Diffstat (limited to 'source4/ldap_server/ldap_server.c')
-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; } |