Compare commits

..
1 Commits
Author SHA1 Message Date
Sergio R. Caprile ee338b7bba fix recvfrom in IPv6 2026-11-16 16:00:56 -03:00
5 changed files with 11 additions and 11 deletions

No files matched your search

+2 -2
View File
@@ -16400,9 +16400,9 @@ static long recv_raw(struct mg_connection *c, void *buf, size_t len) {
long n = 0;
if (c->is_udp) {
union usa usa;
socklen_t slen = tousa(&c->rem, &usa);
socklen_t slen = sizeof(usa);
n = recvfrom(FD(c), (char *) buf, len, 0, &usa.sa, &slen);
if (n > 0) tomgaddr(&usa, &c->rem, slen != sizeof(usa.sin));
if (n > 0) tomgaddr(&usa, &c->rem, usa.sa.sa_family == AF_INET6);
} else {
n = recv(FD(c), (char *) buf, len, MSG_NONBLOCKING);
}
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef MONGOOSE_H
#define MONGOOSE_H
#define MG_VERSION "7.24"
#define MG_VERSION "7.23"
// IMPORTANT:
// Before implementing any functionality, pull this file and use it as a guide:
+5 -5
View File
@@ -3,22 +3,22 @@
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:d3f8b1e2-4a7c-4d9e-bf2a-1c3e5f7a9b0d",
"version": 3,
"version": 2,
"metadata": {
"timestamp": "2026-11-18T00:00:00Z",
"timestamp": "2026-10-13T00:00:00Z",
"component": {
"type": "library",
"bom-ref": "mongoose",
"supplier": { "name": "Cesanta Software Limited", "url": ["https://cesanta.com"] },
"author": "Cesanta Software Limited",
"name": "mongoose",
"version": "7.24",
"version": "7.23",
"description": "Two-file C/C++ embedded networking library. HTTP, WebSocket, MQTT, TLS 1.3, OTA firmware updates, device dashboard. Runs on microcontrollers and desktop OS.",
"licenses": [
{ "expression": "GPL-2.0-only" },
{ "license": { "name": "Cesanta Commercial License", "url": "https://mongoose.ws/licensing/" } }
],
"purl": "pkg:github/cesanta/mongoose@7.24",
"purl": "pkg:github/cesanta/mongoose@7.23",
"externalReferences": [
{ "type": "website", "url": "https://mongoose.ws" },
{ "type": "vcs", "url": "https://github.com/cesanta/mongoose" },
@@ -27,7 +27,7 @@
{ "type": "distribution", "url": "https://raw.githubusercontent.com/cesanta/mongoose/master/mongoose.c" }
],
"properties": [
{ "name": "cpe", "value": "cpe:2.3:a:cesanta:mongoose:7.24:*:*:*:*:*:*:*" }
{ "name": "cpe", "value": "cpe:2.3:a:cesanta:mongoose:7.23:*:*:*:*:*:*:*" }
]
}
},
+2 -2
View File
@@ -297,9 +297,9 @@ static long recv_raw(struct mg_connection *c, void *buf, size_t len) {
long n = 0;
if (c->is_udp) {
union usa usa;
socklen_t slen = tousa(&c->rem, &usa);
socklen_t slen = sizeof(usa);
n = recvfrom(FD(c), (char *) buf, len, 0, &usa.sa, &slen);
if (n > 0) tomgaddr(&usa, &c->rem, slen != sizeof(usa.sin));
if (n > 0) tomgaddr(&usa, &c->rem, usa.sa.sa_family == AF_INET6);
} else {
n = recv(FD(c), (char *) buf, len, MSG_NONBLOCKING);
}
+1 -1
View File
@@ -1 +1 @@
#define MG_VERSION "7.24"
#define MG_VERSION "7.23"