mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
6cc8d7880d
commit
d698c83946
@ -768,13 +768,14 @@ _PUBLIC_ NTSTATUS dcesrv_interface_bind_allow_connect(struct dcesrv_call_state *
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
static NTSTATUS dcesrv_auth_reply(struct dcesrv_call_state *call);
|
||||
|
||||
/*
|
||||
handle a bind request
|
||||
*/
|
||||
static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
|
||||
{
|
||||
struct ncacn_packet *pkt = &call->ack_pkt;
|
||||
struct data_blob_list_item *rep;
|
||||
NTSTATUS status;
|
||||
uint32_t extra_flags = 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_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);
|
||||
if (!rep) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user