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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user