1
0
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:
cyberbotx
2009-03-15 23:05:34 +00:00
parent 8cc5b194d4
commit 7d0b69b94b
+3 -3
View File
@@ -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");