mirror of
https://github.com/anope/anope.git
synced 2026-06-30 17:46:39 +02:00
Correct a set of potential security holes in varags usage in ns_sendpass, patch from Phenoix.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2169 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -48,15 +48,15 @@ class CommandNSSendPass : public Command
|
||||
if (!mail)
|
||||
return MOD_CONT;
|
||||
|
||||
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_HEAD));
|
||||
fprintf(mail->pipe, "%s", getstring(na, NICK_SENDPASS_HEAD));
|
||||
fprintf(mail->pipe, "\n\n");
|
||||
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_1), na->nick);
|
||||
fprintf(mail->pipe, "\n\n");
|
||||
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_2), tmp_pass);
|
||||
fprintf(mail->pipe, "\n\n");
|
||||
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_3));
|
||||
fprintf(mail->pipe, "%s", getstring(na, NICK_SENDPASS_LINE_3));
|
||||
fprintf(mail->pipe, "\n\n");
|
||||
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_4));
|
||||
fprintf(mail->pipe, "%s", getstring(na, NICK_SENDPASS_LINE_4));
|
||||
fprintf(mail->pipe, "\n\n");
|
||||
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_5), NetworkName);
|
||||
fprintf(mail->pipe, "\n.\n");
|
||||
|
||||
Reference in New Issue
Block a user