Skip to content

Commit 835195f

Browse files
benceszigetikordian-pawelec
authored andcommitted
GCVCALLP-2289: Redact PII
1 parent d1cfbc8 commit 835195f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

modules/dispatcher/dispatch.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
#include "ds_bl.h"
5454
#include "ds_clustering.h"
5555

56+
#include "../../redact_pii.h"
57+
5658
#define DS_TABLE_VERSION 9
5759

5860
extern ds_partition_t *partitions;
@@ -2435,7 +2437,7 @@ int ds_is_in_list(struct sip_msg *_m, str *_ip, int port, int set,
24352437
char *pattern = NULL;
24362438

24372439
if (!(ip = str2ip(_ip)) && !(ip = str2ip6(_ip))) {
2438-
LM_ERR("IP val is not IP <%.*s>\n", _ip->len, _ip->s);
2440+
LM_ERR("IP val is not IP <%.*s>\n", _ip->len, redact_pii(_ip->s));
24392441
return -1;
24402442
}
24412443

@@ -2974,7 +2976,7 @@ int ds_push_script_attrs(struct sip_msg *_m, str *script_attrs,
29742976
int j,k;
29752977

29762978
if (!(ip = str2ip(_ip)) && !(ip = str2ip6(_ip))) {
2977-
LM_ERR("IP val is not IP <%.*s>\n",_ip->len,_ip->s);
2979+
LM_ERR("IP val is not IP <%.*s>\n",_ip->len,redact_pii(_ip->s));
29782980
return -1;
29792981
}
29802982

0 commit comments

Comments
 (0)