Author: pschweitzer
Date: Mon Dec 7 10:56:58 2015
New Revision: 70285
URL:
http://svn.reactos.org/svn/reactos?rev=70285&view=rev
Log:
[TCPIP]
In case of localhost arping, fail if local interface isn't remote interface
Modified:
trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c
Modified: trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/tcpi…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] Mon Dec 7 10:56:58
2015
@@ -1690,6 +1690,11 @@
if (Interface) {
PVOID OutputBuffer;
+ if (!AddrIsUnspecified(&Local) && IPs[0] != IPs[1]) {
+ Status = STATUS_UNSUCCESSFUL;
+ goto Exit;
+ }
+
if (Interface->AddressLength >
IrpSp->Parameters.DeviceIoControl.OutputBufferLength) {
Status = STATUS_INVALID_BUFFER_SIZE;
goto Exit;