| 604 |
|
struct AddressRec * |
| 605 |
|
add_conf_by_address(const unsigned int type, struct MaskItem *conf) |
| 606 |
|
{ |
| 607 |
– |
struct AddressRec *arec = NULL; |
| 607 |
|
const char *const hostname = conf->host; |
| 608 |
|
const char *const username = conf->user; |
| 609 |
|
static unsigned int prec_value = UINT_MAX; |
| 611 |
|
|
| 612 |
|
assert(type && !EmptyString(hostname)); |
| 613 |
|
|
| 614 |
< |
arec = xcalloc(sizeof(struct AddressRec)); |
| 614 |
> |
struct AddressRec *arec = xcalloc(sizeof(struct AddressRec)); |
| 615 |
|
arec->masktype = parse_netmask(hostname, &arec->Mask.ipa.addr, &bits); |
| 616 |
|
arec->Mask.ipa.bits = bits; |
| 617 |
|
arec->username = username; |