Skip to content

Commit 26dfc41

Browse files
committed
patch 7.4.1268
Problem: Waittime is used as seconds instead of milliseconds. (Hirohito Higashi) Solution: Divide by 1000.
1 parent a03f233 commit 26dfc41

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/channel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ channel_open(char *hostname, int port_in, int waittime, void (*close_cb)(void))
440440
FD_ZERO(&wfds);
441441
FD_SET(sd, &rfds);
442442
FD_SET(sd, &wfds);
443-
tv.tv_sec = waittime;
444-
tv.tv_usec = 0;
443+
tv.tv_sec = waittime / 1000;
444+
tv.tv_usec = (waittime % 1000) * 1000;
445445
ret = select((int)sd+1, &rfds, &wfds, NULL, &tv);
446446
if (ret < 0)
447447
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
1268,
745747
/**/
746748
1267,
747749
/**/

0 commit comments

Comments
 (0)