diff options
Diffstat (limited to 'src/lib/libssl/src/apps/s_server.c')
| -rw-r--r-- | src/lib/libssl/src/apps/s_server.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c index 1a06d19bb1..8a0c34cf0f 100644 --- a/src/lib/libssl/src/apps/s_server.c +++ b/src/lib/libssl/src/apps/s_server.c | |||
| @@ -2254,11 +2254,10 @@ static int www_body(char *hostname, int s, unsigned char *context) | |||
| 2254 | { | 2254 | { |
| 2255 | char *buf=NULL; | 2255 | char *buf=NULL; |
| 2256 | int ret=1; | 2256 | int ret=1; |
| 2257 | int i,j,k,blank,dot; | 2257 | int i,j,k,dot; |
| 2258 | SSL *con; | 2258 | SSL *con; |
| 2259 | const SSL_CIPHER *c; | 2259 | const SSL_CIPHER *c; |
| 2260 | BIO *io,*ssl_bio,*sbio; | 2260 | BIO *io,*ssl_bio,*sbio; |
| 2261 | long total_bytes; | ||
| 2262 | 2261 | ||
| 2263 | buf=OPENSSL_malloc(bufsize); | 2262 | buf=OPENSSL_malloc(bufsize); |
| 2264 | if (buf == NULL) return(0); | 2263 | if (buf == NULL) return(0); |
| @@ -2329,7 +2328,6 @@ static int www_body(char *hostname, int s, unsigned char *context) | |||
| 2329 | SSL_set_msg_callback_arg(con, bio_s_out); | 2328 | SSL_set_msg_callback_arg(con, bio_s_out); |
| 2330 | } | 2329 | } |
| 2331 | 2330 | ||
| 2332 | blank=0; | ||
| 2333 | for (;;) | 2331 | for (;;) |
| 2334 | { | 2332 | { |
| 2335 | if (hack) | 2333 | if (hack) |
| @@ -2559,7 +2557,6 @@ static int www_body(char *hostname, int s, unsigned char *context) | |||
| 2559 | BIO_puts(io,"HTTP/1.0 200 ok\r\nContent-type: text/plain\r\n\r\n"); | 2557 | BIO_puts(io,"HTTP/1.0 200 ok\r\nContent-type: text/plain\r\n\r\n"); |
| 2560 | } | 2558 | } |
| 2561 | /* send the file */ | 2559 | /* send the file */ |
| 2562 | total_bytes=0; | ||
| 2563 | for (;;) | 2560 | for (;;) |
| 2564 | { | 2561 | { |
| 2565 | i=BIO_read(file,buf,bufsize); | 2562 | i=BIO_read(file,buf,bufsize); |
