From: Simon Wilkinson Date: Fri, 26 Oct 2012 13:52:46 +0000 (+0100) Subject: rx: Remove duplicate security layer check X-Git-Tag: upstream/1.8.0_pre1^2~1862 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=daeb917110f6b358d505eef50088bbb4573a6130;p=packages%2Fo%2Fopenafs.git 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 --- 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) {