# | Line 345 | Line 345 | void _tw_process_page(SSL* ssl, int sock | |
---|---|---|
345 | if(f != NULL) { | |
346 | char buffer[512]; | |
347 | fread(buffer, size < 512 ? size : 512, 1, f); | |
348 | < | if(tw_write(ssl, sock, buffer, size < 512 ? size : 512) < 0) return; |
348 | > | if(tw_write(ssl, sock, buffer, size < 512 ? size : 512) <= 0) return; |
349 | } else { | |
350 | < | if(tw_write(ssl, sock, (unsigned char*)doc + incr, size < 512 ? size : 512) < 0) return; |
350 | > | if(tw_write(ssl, sock, (unsigned char*)doc + incr, size < 512 ? size : 512) <= 0) return; |
351 | } | |
352 | incr += 512; | |
353 | if(size <= 512) break; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |