devmnt: make sure auth chan is on said conection in mntattach()
This commit is contained in:
parent
51b0b0235b
commit
0d7bbda9b9
1 changed files with 3 additions and 0 deletions
|
@ -307,6 +307,9 @@ mntattach(Chan *c, Chan *ac, char *spec, int flags)
|
|||
Mnt *m;
|
||||
Mntrpc *r;
|
||||
|
||||
if(ac != nil && ac->mchan != c)
|
||||
error(Ebadusefd);
|
||||
|
||||
m = c->mux;
|
||||
if(m == nil){
|
||||
mntversion(c, nil, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue