diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-12-26 16:41:23 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-12-26 16:41:23 +0100 |
commit | acf2567b520562eecb34ed2962730091802e7a2d (patch) | |
tree | c82b15b6e834a1e35c0cf9fd4eb2b303ba359dd9 | |
parent | 2eb56c0a4c9a83e753ce20dc77dcdbc569f5235e (diff) |
abisip-find: hide sensitive info for 36c3 status screen36c3
Change-Id: Ieacfa7b79fc7646785a6f6a9ea6efe3709ad6a8c
-rw-r--r-- | src/ipaccess/abisip-find.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |