[BACK]Return to s_time.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/s_time.c between version 1.29 and 1.30

version 1.29, 2018/08/22 20:36:24 version 1.30, 2018/08/28 02:14:22
Line 376 
Line 376 
         if (s_time_config.www_path != NULL) {          if (s_time_config.www_path != NULL) {
                 retval = snprintf(buf, sizeof buf,                  retval = snprintf(buf, sizeof buf,
                     "GET %s HTTP/1.0\r\n\r\n", s_time_config.www_path);                      "GET %s HTTP/1.0\r\n\r\n", s_time_config.www_path);
                 if ((size_t)retval >= sizeof buf) {                  if (retval == -1 || retval >= sizeof buf) {
                         fprintf(stderr, "URL too long\n");                          fprintf(stderr, "URL too long\n");
                         return 0;                          return 0;
                 }                  }
                 SSL_write(scon, buf, strlen(buf));                  if (SSL_write(scon, buf, retval) != retval)
                           return 0;
                 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0)                  while ((i = SSL_read(scon, buf, sizeof(buf))) > 0)
                         bytes_read += i;                          bytes_read += i;
         }          }

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30