Fixed -DNO_SSL build

This commit is contained in:
Sergey Lyubka committed 2013-11-02 10:24:30 +00:00
1 parent 2fd7191836
commit 224d18589f
4 files changed
+18 -6

No files matched your search

+4 -1
View File
@@ -149,9 +149,12 @@ static int64_t push(FILE *fp, SOCKET sock, SSL *ssl, const char *buf,
// How many bytes we send in this iteration
k = len - sent > INT_MAX ? INT_MAX : (int) (len - sent);
#if !defined(NO_SSL)
if (ssl != NULL) {
n = SSL_write(ssl, buf + sent, k);
} else if (fp != NULL) {
} else
#endif
if (fp != NULL) {
n = (int) fwrite(buf + sent, 1, (size_t) k, fp);
if (ferror(fp))
n = -1;