diff options
| -rw-r--r-- | sys/src/9/port/devssl.c | 2 | ||||
| -rw-r--r-- | sys/src/9/port/devtls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/port/devssl.c b/sys/src/9/port/devssl.c index 9c46a8fde..32b207618 100644 --- a/sys/src/9/port/devssl.c +++ b/sys/src/9/port/devssl.c @@ -1436,7 +1436,7 @@ buftochan(char *p) fd = strtoul(p, 0, 0); if(fd < 0) error(Ebadarg); - c = fdtochan(fd, -1, 0, 1); /* error check and inc ref */ + c = fdtochan(fd, ORDWR, 1, 1); /* error check and inc ref */ if(devtab[c->type] == &ssldevtab){ cclose(c); error("cannot ssl encrypt devssl files"); diff --git a/sys/src/9/port/devtls.c b/sys/src/9/port/devtls.c index f5d4fa493..81f50d3a6 100644 --- a/sys/src/9/port/devtls.c +++ b/sys/src/9/port/devtls.c @@ -1872,7 +1872,7 @@ buftochan(char *p) fd = strtoul(p, 0, 0); if(fd < 0) error(Ebadarg); - c = fdtochan(fd, -1, 0, 1); /* error check and inc ref */ + c = fdtochan(fd, ORDWR, 1, 1); /* error check and inc ref */ return c; } |
