From: Art Cancro Date: Fri, 7 Feb 2014 14:07:40 +0000 (-0500) Subject: NNTP: obscure passwords in the syslog X-Git-Tag: v9.01~122^2~31 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=3567891fac0e5016b2a89bb13ca3e453b28e8b2c NNTP: obscure passwords in the syslog --- diff --git a/citadel/modules/nntp/serv_nntp.c b/citadel/modules/nntp/serv_nntp.c index d60abd15f..23652545b 100644 --- a/citadel/modules/nntp/serv_nntp.c +++ b/citadel/modules/nntp/serv_nntp.c @@ -689,7 +689,7 @@ void nntp_command_loop(void) FreeStrBuf(&Cmd); return; } - syslog(LOG_DEBUG, "NNTP server: %s\n", ChrPtr(Cmd)); + syslog(LOG_DEBUG, "NNTP: %s\n", ((!strncasecmp(ChrPtr(Cmd), "AUTHINFO", 8)) ? "AUTHINFO ..." : ChrPtr(Cmd))); extract_token(cmdname, ChrPtr(Cmd), 0, ' ', sizeof cmdname); /*