LDAP Server: Don't create the SASL SECBLOB output object twice
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Wed, 17 Sep 2008 15:55:02 +0000 (17:55 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Sep 2008 14:33:47 +0000 (16:33 +0200)
Removes one "talloc" creation of the output object.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/ldap_server/ldap_bind.c

index f37ef31c0adb15057e77e75bfca0a449072e5384..8357251a8f2f3b0a49e56d89d7e6efb752000d3d 100644 (file)
@@ -180,9 +180,6 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
                        input = *req->creds.SASL.secblob;
                }
 
-               resp->SASL.secblob = talloc(reply, DATA_BLOB);
-               NT_STATUS_HAVE_NO_MEMORY(resp->SASL.secblob);
-
                status = gensec_update(conn->gensec, reply,
                                       input, &output);