fixed dynamic devnull class handling
[srvx.git] / src / mod-hostserv.c
index 0b05e0e770cf8b8aa37a981c276fb904a9eca8b0..24de72dc7ee471bcd15e5100b0e81a9e2d90416f 100644 (file)
@@ -1296,7 +1296,7 @@ struct devnull_class hostserv_get_user_priv(struct handle_info *hi) {
                     th.maxchan = devc->maxchan;
                 if(DEVNULL_HAS_PRIV(devc, MAXSENDQ) && (!DEVNULL_HAS_PRIV(&th, MAXSENDQ) || th.maxsendq < devc->maxsendq))
                     th.maxsendq = devc->maxsendq;
-                th.modes |= devc->maxsendq;
+                th.modes |= devc->modes;
                 if(!th.name)
                     th.name = devc->name;
             }