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>
This commit is contained in:
Gleb Smirnoff 2013-11-08 08:44:09 +00:00
parent 6abd71b021
commit 09c7b5a460
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257841

View File

@ -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;