aboutsummaryrefslogtreecommitdiff
path: root/sys/netsmb
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-11-08 08:44:09 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-11-08 08:44:09 +0000
commit09c7b5a460f67bf232326ef7e8f01f61c21f76f4 (patch)
tree374c3eafee9f20d6a300fec73e82f519ddaf3b30 /sys/netsmb
parent6abd71b021f96583c6ebbd8a7adc8969db696c3b (diff)
downloadsrc-09c7b5a460f67bf232326ef7e8f01f61c21f76f4.tar.gz
src-09c7b5a460f67bf232326ef7e8f01f61c21f76f4.zip
Catch up with sb_timeo type change in r255138. This fixes
smbfs operation. PR: kern/182963 Submitted by: Tomoaki AOKI <junchoon dec.sakura.ne.jp>
Notes
Notes: svn path=/head/; revision=257841
Diffstat (limited to 'sys/netsmb')
-rw-r--r--sys/netsmb/smb_trantcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netsmb/smb_trantcp.c b/sys/netsmb/smb_trantcp.c
index a22e0643a5ef..ef9b52e2026e 100644
--- a/sys/netsmb/smb_trantcp.c
+++ b/sys/netsmb/smb_trantcp.c
@@ -155,8 +155,8 @@ nb_connect_in(struct nbpcb *nbp, struct sockaddr_in *to, struct thread *td)
SOCKBUF_LOCK(&so->so_rcv);
soupcall_set(so, SO_RCV, nb_upcall, nbp);
SOCKBUF_UNLOCK(&so->so_rcv);
- so->so_rcv.sb_timeo = (5 * hz);
- so->so_snd.sb_timeo = (5 * hz);
+ so->so_rcv.sb_timeo = (5 * SBT_1S);
+ so->so_snd.sb_timeo = (5 * SBT_1S);
error = soreserve(so, nbp->nbp_sndbuf, nbp->nbp_rcvbuf);
if (error)
goto bad;