1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s4:rpc_server: split out dcesrv_auth_reply() from dcesrv_bind()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2017-05-15 17:19:31 +02:00 committed by Andrew Bartlett
parent 6cc8d7880d
commit d698c83946

View File

@ -768,13 +768,14 @@ _PUBLIC_ NTSTATUS dcesrv_interface_bind_allow_connect(struct dcesrv_call_state *
return NT_STATUS_OK; return NT_STATUS_OK;
} }
static NTSTATUS dcesrv_auth_reply(struct dcesrv_call_state *call);
/* /*
handle a bind request handle a bind request
*/ */
static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call) static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
{ {
struct ncacn_packet *pkt = &call->ack_pkt; struct ncacn_packet *pkt = &call->ack_pkt;
struct data_blob_list_item *rep;
NTSTATUS status; NTSTATUS status;
uint32_t extra_flags = 0; uint32_t extra_flags = 0;
uint16_t max_req = 0; uint16_t max_req = 0;
@ -1023,6 +1024,15 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
return dcesrv_bind_nak(call, 0); return dcesrv_bind_nak(call, 0);
} }
return dcesrv_auth_reply(call);
}
static NTSTATUS dcesrv_auth_reply(struct dcesrv_call_state *call)
{
struct ncacn_packet *pkt = &call->ack_pkt;
struct data_blob_list_item *rep = NULL;
NTSTATUS status;
rep = talloc_zero(call, struct data_blob_list_item); rep = talloc_zero(call, struct data_blob_list_item);
if (!rep) { if (!rep) {
return NT_STATUS_NO_MEMORY; return NT_STATUS_NO_MEMORY;