* It should be OK now, let's create the buffer.
*/
c = rad_malloc(sizeof(RADCLIENT));
+ memset(c, 0, sizeof(*c));
c->ipaddr = ip_getaddr(hostnm);
if (c->ipaddr == INADDR_NONE) {
p = buffer;
if (!getword(&p, hostnm, sizeof(hostnm)) ||
- !getword(&p, shortnm, sizeof(shortnm))) {
+ !getword(&p, shortnm, sizeof(shortnm))) {
radlog(L_ERR, "%s[%d]: unexpected end of line", file, lineno);
continue;
}
* It should be OK now, let's create the buffer.
*/
nas = rad_malloc(sizeof(NAS));
+ memset(nas, 0, sizeof(*nas));
strcpy(nas->nastype, nastype);
strcpy(nas->shortname, shortnm);