]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-pioctl-20050112
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 31 Jan 2005 04:09:37 +0000 (04:09 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 31 Jan 2005 04:09:37 +0000 (04:09 +0000)
Fix a bug introduced in 1.3.75 within Tranceive().  If the file handle
is invalid, be sure to return an error.

(cherry picked from commit 5a3eddc8ba75832c55e322c7189ff5f20df834fe)

src/sys/pioctl_nt.c

index 0e409b8b656a84048817aaff3248a87c892ef244..e71f7e9127efdd78a28deb5ae8a6e7a78a97f389 100644 (file)
@@ -343,6 +343,8 @@ GetIoctlHandle(char *fileNamep, HANDLE * handlep)
                 }
                 return -1;
             }
+        } else {
+            return -1;
         }
     }