X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fgen_sslfunc.c;h=57cdb0f2710764680b74629c1eee55a99ec68c64;hp=ec4204c7ac58c38498df7529e00919f80722c1f4;hb=51a8e9fa5003cd6094b3b29973f2df15f48892bf;hpb=b8e416c6c70912973e8873369599aa1bc37ba6c8 diff --git a/src/gen_sslfunc.c b/src/gen_sslfunc.c index ec4204c7..57cdb0f2 100644 --- a/src/gen_sslfunc.c +++ b/src/gen_sslfunc.c @@ -317,8 +317,8 @@ ssl_iread (SSL *con, char *buf, int len) int res, fd; BIO_get_fd (con->rbio, &fd); #ifdef HAVE_SELECT - if (opt.timeout && !SSL_pending (con)) - if (select_fd (fd, opt.timeout, 0) <= 0) + if (opt.read_timeout && !SSL_pending (con)) + if (select_fd (fd, opt.read_timeout, 0) <= 0) return -1; #endif do @@ -343,8 +343,8 @@ ssl_iwrite (SSL *con, char *buf, int len) while (len > 0) { #ifdef HAVE_SELECT - if (opt.timeout) - if (select_fd (fd, opt.timeout, 1) <= 0) + if (opt.read_timeout) + if (select_fd (fd, opt.read_timeout, 1) <= 0) return -1; #endif do