]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
gskit: use our internal select wrapper for portability
authorMarc Hoersken <info@marc-hoersken.de>
Sun, 15 Mar 2020 11:56:12 +0000 (12:56 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Sun, 15 Mar 2020 22:39:40 +0000 (23:39 +0100)
Follow up to c52b342
Closes #5106

lib/vtls/gskit.c

index 32153dd0710c1da16400cf1d821fc093bc76cce0..2f558479b76116a6077dd485dc9f7d4f9fde3f93 100644 (file)
@@ -524,7 +524,6 @@ static int pipe_ssloverssl(struct connectdata *conn, int sockindex,
   int m;
   int i;
   int ret = 0;
-  struct timeval tv = {0, 0};
   char buf[CURL_MAX_WRITE_SIZE];
 
   if(!connssl->use || !connproxyssl->use)
@@ -544,7 +543,7 @@ static int pipe_ssloverssl(struct connectdata *conn, int sockindex,
     if(n < conn->sock[sockindex])
       n = conn->sock[sockindex];
   }
-  i = select(n + 1, &fds_read, &fds_write, NULL, &tv);
+  i = Curl_select(n + 1, &fds_read, &fds_write, NULL, 0);
   if(i < 0)
     return -1;  /* Select error. */