devmnt: make sure auth chan is on said conection in mntattach()

This commit is contained in:
cinap_lenrek 2018-07-16 01:35:02 +02:00
parent 51b0b0235b
commit 0d7bbda9b9

View file

@ -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);