From 12cc24252953e529dc59db60444292d00dfada03 Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Mon, 21 Oct 2019 20:20:03 +0200 Subject: [PATCH] Protocol.c: fix bug in ClientConnectGetSocket() causing custom HTTP header not to work The bug was caused by a typo in the StrCpy() call: the source buffer was the same as the destination one, meaning that the function didn't do anything. --- src/Cedar/Protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Protocol.c b/src/Cedar/Protocol.c index 482efba8..3bdecd91 100644 --- a/src/Cedar/Protocol.c +++ b/src/Cedar/Protocol.c @@ -6056,7 +6056,7 @@ SOCK *ClientConnectGetSocket(CONNECTION *c, bool additional_connect) w.ProxyPort = o->ProxyPort; StrCpy(w.ProxyUsername, sizeof(w.ProxyUsername), o->ProxyUsername); StrCpy(w.ProxyPassword, sizeof(w.ProxyPassword), o->ProxyPassword); - StrCpy(w.CustomHttpHeader, sizeof(w.CustomHttpHeader), w.CustomHttpHeader); + StrCpy(w.CustomHttpHeader, sizeof(w.CustomHttpHeader), o->CustomHttpHeader); switch (o->ProxyType) {