From: Jeffrey Altman Date: Sun, 26 Oct 2008 21:52:29 +0000 (+0000) Subject: windows-pioctl-drive-map-20081026 X-Git-Tag: openafs-devel-1_5_61~722 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=aa09aa2be151d44a9fe5008ff5931dd1892ddf35;p=packages%2Fo%2Fopenafs.git windows-pioctl-drive-map-20081026 LICENSE MIT a remote drive connection may not be mapped to a local drive letter. --- diff --git a/src/sys/pioctl_nt.c b/src/sys/pioctl_nt.c index 6ebd7ad0a..22125fc06 100644 --- a/src/sys/pioctl_nt.c +++ b/src/sys/pioctl_nt.c @@ -446,7 +446,8 @@ DriveIsMappedToAFS(char *drivestr, char *NetbiosName) // if (dwResultEnum == NO_ERROR) { for (i = 0; i < cEntries; i++) { - if (toupper(lpnrLocal[i].lpLocalName[0]) == toupper(drivestr[0])) { + if (lpnrLocal[i].lpLocalName && + toupper(lpnrLocal[i].lpLocalName[0]) == toupper(drivestr[0])) { // // Skip the two backslashes at the start of the UNC device name //