mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-15 10:29:47 +00:00
Merge pull request #2348 from cesanta/dns
Fix #2263 - allow multiple errors in DNS handler
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -2016,7 +2016,7 @@ static void test_str(void) {
|
||||
|
||||
static void fn1(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
if (ev == MG_EV_ERROR) {
|
||||
ASSERT(*(void **) fn_data == NULL);
|
||||
free(*(char **) fn_data); // See #2263
|
||||
*(char **) fn_data = mg_mprintf("%s", (char *) ev_data);
|
||||
}
|
||||
(void) c;
|
||||
|
||||
Reference in new issue
Block a user