ref: 0d7bbda9b93e4af3c512f835cc502a7e9a60c359
parent: 51b0b0235b32e39b5a71ac440f7ccb679f44c43f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jul 15 21:35:02 EDT 2018
devmnt: make sure auth chan is on said conection in mntattach()
--- a/sys/src/9/port/devmnt.c
+++ b/sys/src/9/port/devmnt.c
@@ -307,6 +307,9 @@
Mnt *m;
Mntrpc *r;
+ if(ac != nil && ac->mchan != c)
+ error(Ebadusefd);
+
m = c->mux;
if(m == nil){
mntversion(c, nil, 0, 0);