condition that cause always passthrough bypass#1472
condition that cause always passthrough bypass#1472ykopel wants to merge 1 commit intoapache:masterfrom
Conversation
Fix for apache/trafficserver@497e475. This commit contains a condition that will always be true. This is because ua_raw_buffer_reader->read_avail() always will be grater than zero. You haven't see it until now because of another bug (5817738) that cause is_transparent_passthrough_allowed() to be always false and this for it never reached to your lines. This is why I suggest to just delete those lines meantime.
|
Have you tested this in practice? |
|
I tested it in my env. And I see it is grater than zero. |
|
[approve ci] |
|
Intel CC build successful! See https://ci.trafficserver.apache.org/job/icc-github/31/ for details. |
|
Linux build successful! See https://ci.trafficserver.apache.org/job/linux-github/1493/ for details. |
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/freebsd-github/1599/ for details. |
|
clang-analyzer build successful! See https://ci.trafficserver.apache.org/job/clang-analyzer-github/163/ for details. |
|
It is fixed by “TS-5103: replace ua_raw_buffer_reader with ua_buffer_reader” and #1271 |
|
"TS-3100: Extend tr-pass to allow malformed HTTP GET requests to be blind tunneled." is added by @shinrich . |
|
@oknet Does that mean we should close this PR (without merging) ? |
|
@zwoop yes, close without merging. |
Fix for 497e475.
This commit contains a condition that will always be true.
This is because ua_raw_buffer_reader->read_avail() always will be grater than zero.
You haven't see it until now because of another bug (#1471) that cause is_transparent_passthrough_allowed() to be always false and this for it never reached to your lines.
This is why I suggest to just delete those lines meantime.