From 429ab795202dc359f6e282a5addccf4f312317cc Mon Sep 17 00:00:00 2001 From: James Yonan Date: Thu, 28 Jul 2011 01:29:12 +0000 Subject: Redact "echo" directive strings from log, since these strings (going forward) could conceivably contain security-sensitive data. Version 2.1.7 git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@7480 e7ae566f-a301-0410-adde-c780ea21d3b5 --- misc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 136e4ce..569c8e7 100644 --- a/misc.c +++ b/misc.c @@ -2408,6 +2408,11 @@ sanitize_control_message(const char *str, struct gc_arena *gc) cp += 7; redact = true; } + else if (c == 'e' && !strncmp(cp, "echo ", 5)) + { + cp += 4; + redact = true; + } else { if (c == ',') /* end of session id? */ -- cgit