Be sure to zero out host buffer before using it

This commit is contained in:
Stephen Bennett 2010-01-30 19:57:35 +00:00 committed by Ed Kellett
parent 721410d575
commit 271ddd99d7
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -49,6 +49,7 @@ check_new_user(void *vdata)
return;
char buf[HOSTLEN];
memset(buf, 0, sizeof(buf));
char *dst = buf;
strncpy(buf, source_p->host, accountpart - source_p->host);