diff options
author | Phil Pennock <pdp@exim.org> | 2017-02-01 12:34:52 -0500 |
---|---|---|
committer | Phil Pennock <pdp@exim.org> | 2017-02-01 12:34:52 -0500 |
commit | a26fb6a77384b60f9712e3b0810c70923ecf4963 (patch) | |
tree | 2dd48b3c536b1aa4dcea02cfe7c5cde79bbaa10e /test/scripts | |
parent | bbfc5a3e3e0d4e150894edce2ae72bff24e4408b (diff) |
bug-fix test-driving input
The client driver is a little restrictive in the escape sequences it
handles; two octets here were missing the `x` after the `\`, so `\05` is
two octets, a 0 and then a 5, where `\x05` would be one octet.
So we were sending two more octets than expected, not catching that Exim
was parsing the wrong IP/port at the end, and now that Exim only reads
as much of the proxy protocol header as belongs in it, instead of "up to
the largest it could be", this test-bug has been exposed.
Diffstat (limited to 'test/scripts')
-rw-r--r-- | test/scripts/4030-proxy-protocol/4030 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/scripts/4030-proxy-protocol/4030 b/test/scripts/4030-proxy-protocol/4030 index 8b560bcbc..50dca160a 100644 --- a/test/scripts/4030-proxy-protocol/4030 +++ b/test/scripts/4030-proxy-protocol/4030 @@ -50,7 +50,7 @@ QUIT # # protocol v2 plain receive client HOSTIPV4 PORT_D ->>> \x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A\x21\x11\x00\x0c\xc0\xa8\x00\x0f\xc0\xa8\x00\05\xc2\x95\x04\01 +>>> \x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A\x21\x11\x00\x0c\xc0\xa8\x00\x0f\xc0\xa8\x00\x05\xc2\x95\x04\x01 ??? 220 HELO clientname ??? 250 |