]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-rxstats-20051003
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 4 Oct 2005 04:16:36 +0000 (04:16 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 4 Oct 2005 04:16:36 +0000 (04:16 +0000)
strip the pioctl path from the input before reading the flags

src/WINNT/afsd/cm_ioctl.c

index 8cc44d0ceb0ec95cd836120f84f3864968a143bb..da9ed56ac93bdeb1c30d7ae57fe6a72e6fb463e2 100644 (file)
@@ -2400,6 +2400,8 @@ long cm_IoctlRxStatProcess(struct smb_ioctl *ioctlp, struct cm_user *userp)
     afs_int32 flags;
     int code = 0;
 
+    cm_SkipIoctlPath(ioctlp);
+
     memcpy((char *)&flags, ioctlp->inDatap, sizeof(afs_int32));
     if (!(flags & AFSCALL_RXSTATS_MASK) || (flags & ~AFSCALL_RXSTATS_MASK)) {
         return -1;
@@ -2421,8 +2423,9 @@ long cm_IoctlRxStatPeer(struct smb_ioctl *ioctlp, struct cm_user *userp)
     afs_int32 flags;
     int code = 0;
 
-    memcpy((char *)&flags, ioctlp->inDatap, sizeof(afs_int32));
+    cm_SkipIoctlPath(ioctlp);
 
+    memcpy((char *)&flags, ioctlp->inDatap, sizeof(afs_int32));
     if (!(flags & AFSCALL_RXSTATS_MASK) || (flags & ~AFSCALL_RXSTATS_MASK)) {
        return -1;
     }