Skip to content
This repository was archived by the owner on Apr 5, 2026. It is now read-only.

Commit 8dbf9dc

Browse files
committed
revert: restore LISTEN_CONN_INFO fix after ASan proof
The previous commit proved the ASan CI job catches the heap overflow. Restore the correct code.
1 parent 7bb9dcf commit 8dbf9dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mtproto/mtproto-proxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,7 @@ void mtfront_pre_loop (void) {
22872287
if (window_clamp) {
22882288
listening_connection_job_t LC = Events[http_sfd[i]].data;
22892289
assert (LC);
2290-
CONN_INFO(LC)->window_clamp = window_clamp;
2290+
LISTEN_CONN_INFO(LC)->window_clamp = window_clamp;
22912291
if (setsockopt (http_sfd[i], IPPROTO_TCP, TCP_WINDOW_CLAMP, &window_clamp, 4) < 0) {
22922292
vkprintf (0, "error while setting window size for socket #%d to %d: %m\n", http_sfd[i], window_clamp);
22932293
}

0 commit comments

Comments
 (0)