mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
silence cast and c++ warnings)
This commit is contained in:
1 parent
90623492b7
commit
d46798c2a7
3 files changed
+6
-6
No files matched your search
+1
-1
@@ -397,7 +397,7 @@ static void mg_tls_encrypt(struct mg_connection *c, const uint8_t *msg,
|
||||
#if CHACHA20
|
||||
(void) tag; // tag is only used in aes gcm
|
||||
{
|
||||
uint8_t *enc = malloc(8192);
|
||||
uint8_t *enc = (uint8_t *) malloc(8192);
|
||||
if (enc == NULL) {
|
||||
mg_error(c, "TLS OOM");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user