Fix potential buffer-overflow from malformed RSFNC request.
This commit is contained in:
parent
0cce01d388
commit
e2606551a2
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ doit:
|
|||
use_id(target_p), parv[2], (long) target_p->tsinfo);
|
||||
|
||||
del_from_client_hash(target_p->name, target_p);
|
||||
strcpy(target_p->name, parv[2]);
|
||||
rb_strlcpy(target_p->name, parv[2], NICKLEN);
|
||||
add_to_client_hash(target_p->name, target_p);
|
||||
|
||||
monitor_signon(target_p);
|
||||
|
|
Loading…
Reference in a new issue