1
0
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:
Andrew Tridgell 2004-09-10 07:14:02 +00:00 committed by Gerald (Jerry) Carter
parent 68fbed64d5
commit 1512030832

View File

@ -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) {