mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-22 11:36:21 +00:00
Squash warning
This commit is contained in:
1 parent
57159dc5c0
commit
dfc2e97d5e
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -9056,8 +9056,8 @@ static void mg_tls_derive_secret(const char *label, uint8_t *key, size_t keysz,
|
|||||||
|
|
||||||
// Did we receive a full TLS message in the c->rtls buffer?
|
// Did we receive a full TLS message in the c->rtls buffer?
|
||||||
static bool mg_tls_got_msg(struct mg_connection *c) {
|
static bool mg_tls_got_msg(struct mg_connection *c) {
|
||||||
return c->rtls.len >= TLS_HDR_SIZE &&
|
return c->rtls.len >= (size_t) TLS_HDR_SIZE &&
|
||||||
c->rtls.len >= (TLS_HDR_SIZE + MG_LOAD_BE16(c->rtls.buf + 3));
|
c->rtls.len >= (size_t) (TLS_HDR_SIZE + MG_LOAD_BE16(c->rtls.buf + 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove a single TLS record from the recv buffer
|
// Remove a single TLS record from the recv buffer
|
||||||
|
|||||||
+2
-2
@@ -309,8 +309,8 @@ static void mg_tls_derive_secret(const char *label, uint8_t *key, size_t keysz,
|
|||||||
|
|
||||||
// Did we receive a full TLS message in the c->rtls buffer?
|
// Did we receive a full TLS message in the c->rtls buffer?
|
||||||
static bool mg_tls_got_msg(struct mg_connection *c) {
|
static bool mg_tls_got_msg(struct mg_connection *c) {
|
||||||
return c->rtls.len >= TLS_HDR_SIZE &&
|
return c->rtls.len >= (size_t) TLS_HDR_SIZE &&
|
||||||
c->rtls.len >= (TLS_HDR_SIZE + MG_LOAD_BE16(c->rtls.buf + 3));
|
c->rtls.len >= (size_t) (TLS_HDR_SIZE + MG_LOAD_BE16(c->rtls.buf + 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove a single TLS record from the recv buffer
|
// Remove a single TLS record from the recv buffer
|
||||||
|
|||||||
Reference in new issue
Block a user