newvolumebyname-analyze-the-vrequest-actually-used-20020205
authorDerrick Brashear <shadow@dementia.org>
Tue, 5 Feb 2002 21:58:03 +0000 (21:58 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 5 Feb 2002 21:58:03 +0000 (21:58 +0000)
it's ok to support a null request being passed in, but if a real one is
passed in we shouldn't analyze it when it's not the one we used when
making calls.

src/afs/afs_volume.c

index 1a94a1e..29609e1 100644 (file)
@@ -674,7 +674,7 @@ static struct volume *afs_NewVolumeByName(char *aname, afs_int32 acell, int agoo
        } else
            code = -1;
     } while
-      (afs_Analyze(tconn, code, (struct VenusFid *) 0, areq,
+      (afs_Analyze(tconn, code, (struct VenusFid *) 0, &treq,
                   -1, /* no op code for this */
                   SHARED_LOCK, tcell));