1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 14:33:12 +02:00

Minor oob read; someone forgot a parameter in sendto_one ;p

This commit is contained in:
Bram Matthys
2003-08-17 00:05:38 +00:00
parent 7f9841b01d
commit da18f18fa3
+2 -1
View File
@@ -544,6 +544,7 @@ int check_for_target_limit(aClient *sptr, void *target, const char *name)
for (p = sptr->targets; p < &sptr->targets[MAXTARGETS - 1];)
if (*++p == hash)
{
/* move targethash to first position... */
memmove(&sptr->targets[1], &sptr->targets[0],
p - sptr->targets);
sptr->targets[0] = hash;
@@ -555,7 +556,7 @@ int check_for_target_limit(aClient *sptr, void *target, const char *name)
sptr->since += TARGET_DELAY; /* lag them up */
sptr->nexttarget += TARGET_DELAY;
sendto_one(sptr, err_str(ERR_TARGETTOOFAST), me.name, sptr->name,
name);
name, sptr->nexttarget - TStime());
return 1;
}