mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r2275: don't crash on a rpc BIND_NAK response ...
(This used to be commit 22a6e5d50d
)
This commit is contained in:
parent
68fbed64d5
commit
1512030832
@ -465,10 +465,15 @@ NTSTATUS dcerpc_bind(struct dcerpc_pipe *p,
|
||||
return status;
|
||||
}
|
||||
|
||||
if (pkt.ptype == DCERPC_PKT_BIND_NAK) {
|
||||
DEBUG(2,("dcerpc: bind_nak reason %d\n", pkt.u.bind_nak.reject_reason));
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
if ((pkt.ptype != DCERPC_PKT_BIND_ACK) ||
|
||||
pkt.u.bind_ack.num_results == 0 ||
|
||||
pkt.u.bind_ack.ctx_list[0].result != 0) {
|
||||
status = NT_STATUS_UNSUCCESSFUL;
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
if (pkt.ptype == DCERPC_PKT_BIND_ACK) {
|
||||
|
Loading…
Reference in New Issue
Block a user