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:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user