abisip-find: hide sensitive info for 36c3 status screen

Change-Id: Ieacfa7b79fc7646785a6f6a9ea6efe3709ad6a8c
This commit is contained in:
Neels Hofmeyr 2019-12-26 16:41:23 +01:00
parent 2eb56c0a4c
commit acf2567b52
1 changed files with 5 additions and 1 deletions

View File

@ -288,7 +288,11 @@ static char *parse_response(void *ctx, unsigned char *buf, int len)
t_len = *cur++;
t_tag = *cur++;
if (t_tag != IPAC_IDTAG_IPADDR) {
if (t_tag != IPAC_IDTAG_IPADDR
// hide sensitive info on 36c3
&& (t_tag == IPAC_IDTAG_IPADDR
|| t_tag == IPAC_IDTAG_UNIT
|| t_tag == IPAC_IDTAG_LOCATION2)) {
if (cmdline_opts.format_json)
out = talloc_asprintf_append(out, "\"%s\": \"%s\", ", idtag_name(t_tag), cur);
else