From: Jeffrey Altman Date: Mon, 31 Jan 2005 04:09:37 +0000 (+0000) Subject: STABLE14-windows-pioctl-20050112 X-Git-Tag: openafs-devel-1_3_78~48 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f7f484bcca664de571a8cebdc6021c4119d79576;p=packages%2Fo%2Fopenafs.git STABLE14-windows-pioctl-20050112 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) --- diff --git a/src/sys/pioctl_nt.c b/src/sys/pioctl_nt.c index 0e409b8b6..e71f7e912 100644 --- a/src/sys/pioctl_nt.c +++ b/src/sys/pioctl_nt.c @@ -343,6 +343,8 @@ GetIoctlHandle(char *fileNamep, HANDLE * handlep) } return -1; } + } else { + return -1; } }