From daeb917110f6b358d505eef50088bbb4573a6130 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Fri, 26 Oct 2012 14:52:46 +0100 Subject: [PATCH] rx: Remove duplicate security layer check rxi_FindConnection checks that the connection it returns has a security layer matching that of the incoming packet. Don't duplicate this check within the rxi_ReceivePacket code. Change-Id: I03e7d50ecf84f638d8e222d77defc25b8a58627a Reviewed-on: http://gerrit.openafs.org/8298 Reviewed-by: Jeffrey Altman Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/rx/rx.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/rx/rx.c b/src/rx/rx.c index a75401833..bfb73fa4d 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -3548,14 +3548,6 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket, return np; } - /* If the service security object index stamped in the packet does not - * match the connection's security index, ignore the packet */ - if (np->header.securityIndex != conn->securityIndex) { - MUTEX_EXIT(&call->lock); - putConnection(conn); - return np; - } - /* If we're receiving the response, then all transmit packets are * implicitly acknowledged. Get rid of them. */ if (np->header.type == RX_PACKET_TYPE_DATA) { -- 2.39.5