From acf2567b520562eecb34ed2962730091802e7a2d Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 26 Dec 2019 16:41:23 +0100 Subject: [PATCH] abisip-find: hide sensitive info for 36c3 status screen Change-Id: Ieacfa7b79fc7646785a6f6a9ea6efe3709ad6a8c --- src/ipaccess/abisip-find.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ipaccess/abisip-find.c b/src/ipaccess/abisip-find.c index e5e12810c..7084617d2 100644 --- a/src/ipaccess/abisip-find.c +++ b/src/ipaccess/abisip-find.c @@ -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