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

Diff for /src/usr.bin/ftp/fetch.c between version 1.127 and 1.128

version 1.127, 2014/08/21 16:46:48 version 1.128, 2014/08/25 11:33:55
Line 343 
Line 343 
                 }                  }
   
                 path = newline;                  path = newline;
           } else if (ishttpsurl) {
                   sslhost = strdup(host);
                   if (sslhost == NULL)
                           errx(1, "Can't allocate memory for https path/host.");
         }          }
   
         if (isfileurl) {          if (isfileurl) {
Line 604 
Line 608 
                             ressl_error(ssl));                              ressl_error(ssl));
                         goto cleanup_url_get;                          goto cleanup_url_get;
                 }                  }
                 if (ressl_connect_socket(ssl, s, host) != 0) {                  if (ressl_connect_socket(ssl, s, sslhost) != 0) {
                         fprintf(ttyout, "SSL failure: %s\n", ressl_error(ssl));                          fprintf(ttyout, "SSL failure: %s\n", ressl_error(ssl));
                         goto cleanup_url_get;                          goto cleanup_url_get;
                 }                  }
Line 975 
Line 979 
                 ressl_free(ssl);                  ressl_free(ssl);
         }          }
         free(full_host);          free(full_host);
           free(sslhost);
 #endif /* !SMALL */  #endif /* !SMALL */
         if (fin != NULL)          if (fin != NULL)
                 fclose(fin);                  fclose(fin);

Legend:
Removed from v.1.127  
changed lines
  Added in v.1.128