Skip to content

Commit b512139

Browse files
committed
Clear client_ip on request_init
1 parent 4485a51 commit b512139

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

appsec/src/extension/request_lifecycle.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ void dd_req_lifecycle_rinit(bool force)
118118
if (!_cur_req_span) {
119119
mlog(dd_log_debug, "No root span available on request init");
120120
}
121+
122+
if (_client_ip) {
123+
mlog(dd_log_warning, "Client IP not cleared on prev request. Value %p",
124+
(void *)_client_ip);
125+
_client_ip = NULL;
126+
}
127+
121128
_do_request_begin_php();
122129
}
123130

0 commit comments

Comments
 (0)