Skip to content

Commit c80f221

Browse files
committed
CONC-783 fixup - make sure that proxy header is not sent twice
in case of TLS connection.
1 parent c71865e commit c80f221

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/auth/my_auth.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,12 @@ static int send_client_reply_packet(MCPVIO_EXT *mpvio,
346346
the server does not know we want to do SSL
347347
*/
348348
if (proxy_header_len)
349+
{
349350
ma_net_write_buff(net, proxy_header, proxy_header_len);
351+
/* Reset proxy header */
352+
proxy_header_len= 0;
353+
proxy_header= NULL;
354+
}
350355

351356
if (ma_net_write(net, (unsigned char *)buff, (size_t) (end-buff)) || ma_net_flush(net))
352357
{

0 commit comments

Comments
 (0)