rpcrt4: Return a fault packet if the interface/object pair in a request packet aren't registered.

This commit is contained in:
Rob Shearman 2007-06-25 14:23:04 +01:00 committed by Alexandre Julliard
parent 903fb72b21
commit 0d05685b68

View File

@ -235,7 +235,11 @@ static void RPCRT4_process_packet(RpcConnection* conn, RpcPktHdr* hdr, RPC_MESSA
sif = RPCRT4_find_interface(object_uuid, &conn->ActiveInterface, TRUE);
if (!sif) {
/* FIXME: send fault packet? */
response = RPCRT4_BuildFaultHeader(NDR_LOCAL_DATA_REPRESENTATION,
RPC_S_UNKNOWN_IF);
RPCRT4_Send(conn, response, NULL, 0);
RPCRT4_FreeHeader(response);
break;
}
msg->RpcInterfaceInformation = sif->If;