mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-20 19:41:58 +00:00
Fixed -DNO_SSL build
This commit is contained in:
1 parent
2fd7191836
commit
224d18589f
4 files changed
+18
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user