Closed jmccl closed 2 months ago
The change is correct, but not sufficient. If you do that, NgxHttpOrigDstCtx::save
will attempt to copy IPV4_STRLEN
bytes from the addr
of length e
, going past the end of the buffer.
Good catch. I've updated the PR.
Done.
Thanks!
Trivial change to resize the vector holding the ip address to the correct size. Without this the subsequent call to 'from_utf8' operates on a vector that is too large, resulting in garbage at the end of the string produced.