unsigned int proxy_seen_banner:1;
unsigned int skip_line:1;
unsigned int id_logged:1;
+ unsigned int proxy_capability_request_sent:1;
unsigned int client_ignores_capability_resp_code:1;
unsigned int auth_mech_name_parsed:1;
};
it), send the (unnecessary) CAPABILITY command to backend as well
to avoid sending the CAPABILITY reply twice (untagged and OK resp
code). */
- if (client->proxy_backend_capability == NULL ||
- client->client_ignores_capability_resp_code) {
+ if (!client->proxy_capability_request_sent &&
+ (client->proxy_backend_capability == NULL ||
+ client->client_ignores_capability_resp_code)) {
+ client->proxy_capability_request_sent = TRUE;
str_append(str, "C CAPABILITY\r\n");
if (client->common.proxy_nopipelining) {
/* authenticate only after receiving C OK reply. */