diff options
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/getnetconn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/getnetconn.c b/src/lib9/getnetconn.c index 1f239404..52303d07 100644 --- a/src/lib9/getnetconn.c +++ b/src/lib9/getnetconn.c @@ -91,12 +91,12 @@ getnetconninfo(char *dir, int fd) nci->spec = unknown; if(nci->dir == nil || nci->root == nil) goto err; - sn = sizeof sn; + sn = sizeof u; if(getsockname(fd, &u.sa, &sn) < 0) goto err; if(convert(fd, &u.sa, &nci->lsys, &nci->lserv, &nci->laddr) < 0) goto err; - sn = sizeof sn; + sn = sizeof u; if(getpeername(fd, &u.sa, &sn) < 0) goto err; if(convert(fd, &u.sa, &nci->rsys, &nci->rserv, &nci->raddr) < 0) |