[TCPIP]
authorPierre Schweitzer <pierre@reactos.org>
Tue, 8 Dec 2015 22:16:18 +0000 (22:16 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 8 Dec 2015 22:16:18 +0000 (22:16 +0000)
Fix one test failure

svn path=/trunk/; revision=70312

reactos/drivers/network/tcpip/tcpip/dispatch.c

index e5ef647..6d77970 100644 (file)
@@ -1672,7 +1672,8 @@ NTSTATUS DispTdiQueryIpHwAddress( PDEVICE_OBJECT DeviceObject, PIRP Irp, PIO_STA
 
     Irp->IoStatus.Information = 0;
 
-    if (IrpSp->Parameters.DeviceIoControl.InputBufferLength < 2 * sizeof(ULONG)) {
+    if (IrpSp->Parameters.DeviceIoControl.InputBufferLength < 2 * sizeof(ULONG) ||
+        IrpSp->Parameters.DeviceIoControl.OutputBufferLength == 0) {
         Status = STATUS_INVALID_BUFFER_SIZE;
         goto Exit;
     }