diff options
| author | Sebastien Tardif <sebtardif@ncf.ca> | 2026-05-28 02:56:56 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-05-29 14:25:41 +0900 |
| commit | 422a5bf57575a8c5d06faedfd77376501917e22c (patch) | |
| tree | 95f4a35615ae8ad574018279acc119fa9be20dac /t/t4013/diff.diff_initial..side | |
| parent | 30c8fda1ab6d55d3b0129bb1686c23bf06cd5b0d (diff) | |
daemon: guard NULL REMOTE_PORT in execute() logging
REMOTE_ADDR and REMOTE_PORT are both set by the same code path in
handle(), so when the existing REMOTE_ADDR check passes, REMOTE_PORT
is guaranteed to be non-NULL. Guard REMOTE_PORT as well so that a
future change that breaks this invariant does not pass NULL to
printf's %s, which is undefined behavior.
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
