1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 22:33:12 +02:00

Correct a set of potential security holes in varags usage in ns_register, patch from Phenoix.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2168 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-03-15 23:05:23 +00:00
parent 89e63ed395
commit 8cc5b194d4
+3 -3
View File
@@ -499,15 +499,15 @@ int do_sendregmail(User *u, NickRequest *nr)
mail = MailRegBegin(u, nr, buf, s_NickServ);
if (!mail)
return -1;
fprintf(mail->pipe, getstring(NICK_REG_MAIL_HEAD));
fprintf(mail->pipe, "%s", getstring(NICK_REG_MAIL_HEAD));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_1), nr->nick);
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_2), s_NickServ, nr->passcode);
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_3));
fprintf(mail->pipe, "%s", getstring(NICK_REG_MAIL_LINE_3));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_4));
fprintf(mail->pipe, "%s", getstring(NICK_REG_MAIL_LINE_4));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_5), NetworkName);
fprintf(mail->pipe, "\n.\n");