mirror of
https://github.com/matrix-construct/construct
synced 2024-12-30 17:34:04 +01:00
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