Be sure to zero out host buffer before using it
This commit is contained in:
parent
721410d575
commit
271ddd99d7
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ check_new_user(void *vdata)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char buf[HOSTLEN];
|
char buf[HOSTLEN];
|
||||||
|
memset(buf, 0, sizeof(buf));
|
||||||
char *dst = buf;
|
char *dst = buf;
|
||||||
|
|
||||||
strncpy(buf, source_p->host, accountpart - source_p->host);
|
strncpy(buf, source_p->host, accountpart - source_p->host);
|
||||||
|
|
Loading…
Add table
Reference in a new issue