1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r649: return unknown interface when the client not yet

binds succesful to an interface

metze
This commit is contained in:
Stefan Metzmacher 2004-05-11 15:39:23 +00:00 committed by Gerald (Jerry) Carter
parent 75bca5dcfa
commit c39e450702
2 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,7 @@ interface dcerpc
const int DCERPC_FAULT_OP_RNG_ERROR = 0x1c010002;
const int DCERPC_FAULT_UNK_IF = 0x1c010003;
const int DCERPC_FAULT_NDR = 0x000006f7;
const int DCERPC_FAULT_INVALID_TAG = 0x1c000006;
const int DCERPC_FAULT_CONTEXT_MISMATCH = 0x1c00001a;

View File

@ -560,6 +560,11 @@ static NTSTATUS dcesrv_request(struct dcesrv_call_state *call)
DATA_BLOB stub;
uint32 total_length;
if (!call->conn->iface) {
return dcesrv_fault(call, DCERPC_FAULT_UNK_IF);
}
opnum = call->pkt.u.request.opnum;
if (opnum >= call->conn->iface->ndr->num_calls) {