mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 05:26:15 +08:00
Merge pull request #1319 from ignacionr/patch-1
The sanitiser pointed out this problem
This commit is contained in:
commit
824e33ef8a
@ -64,7 +64,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
mg_tls_init(c, &opts);
|
||||
}
|
||||
} else if (ev == MG_EV_CLOSE) {
|
||||
if (c2 != NULL) c2->is_closing = 1;
|
||||
if (c->label[0] != 'B' && c2 != NULL) c2->is_closing = 1;
|
||||
c->fn_data = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user