145
146
if (strlen(hostnm) >= sizeof(c->longname)) {
146
147
radlog(L_ERR, "%s[%d]: host name of length %d is greater than the allowed maximum of %d.",
151
153
if (strlen(secret) >= sizeof(c->secret)) {
152
154
radlog(L_ERR, "%s[%d]: secret of length %d is greater than the allowed maximum of %d.",
157
160
if (strlen(shortnm) > sizeof(c->shortname)) {
158
161
radlog(L_ERR, "%s[%d]: short name of length %d is greater than the allowed maximum of %d.",
165
169
* It should be OK now, let's create the buffer.
167
172
c = rad_malloc(sizeof(RADCLIENT));
168
173
memset(c, 0, sizeof(*c));