|
Lines 390-396
Link Here
|
| 390 |
config_set_conf_addrs(); |
390 |
config_set_conf_addrs(); |
| 391 |
config_load_defaults(); |
391 |
config_load_defaults(); |
| 392 |
/* create & init default line, id 0 */ |
392 |
/* create & init default line, id 0 */ |
| 393 |
curline = (struct line_t*)list_add(&lstlines, sizeof(struct line_t)); |
393 |
curline = (struct line_t*)ll_list_add(&lstlines, sizeof(struct line_t)); |
| 394 |
if ( !curline ) |
394 |
if ( !curline ) |
| 395 |
{ |
395 |
{ |
| 396 |
fprintf(stderr, "Not enough memory to load configuration.\n"); |
396 |
fprintf(stderr, "Not enough memory to load configuration.\n"); |
|
Lines 425-431
Link Here
|
| 425 |
case LCS_CONF_LINE: |
425 |
case LCS_CONF_LINE: |
| 426 |
// integrity of current line gets checked at the end. |
426 |
// integrity of current line gets checked at the end. |
| 427 |
// let's begin with the settings of a new line |
427 |
// let's begin with the settings of a new line |
| 428 |
curline = (struct line_t*)list_add(&lstlines, sizeof(struct line_t)); |
428 |
curline = (struct line_t*)ll_list_add(&lstlines, sizeof(struct line_t)); |
| 429 |
if ( !curline ) |
429 |
if ( !curline ) |
| 430 |
{ |
430 |
{ |
| 431 |
fprintf(stderr, "Not enough memory to load configuration.\n"); |
431 |
fprintf(stderr, "Not enough memory to load configuration.\n"); |
|
Lines 599-605
Link Here
|
| 599 |
// ok, got new filter entry |
599 |
// ok, got new filter entry |
| 600 |
if (server->ipl_type != IPL_INVALID) |
600 |
if (server->ipl_type != IPL_INVALID) |
| 601 |
{ |
601 |
{ |
| 602 |
iplentry = (struct ipl_item_t*)list_add(&ipl, sizeof(struct ipl_item_t)); |
602 |
iplentry = (struct ipl_item_t*)ll_list_add(&ipl, sizeof(struct ipl_item_t)); |
| 603 |
if ( !iplentry ) |
603 |
if ( !iplentry ) |
| 604 |
{ |
604 |
{ |
| 605 |
server->ipl_type = IPL_INVALID; |
605 |
server->ipl_type = IPL_INVALID; |
|
Lines 632-638
Link Here
|
| 632 |
// ok, got new shutdown - filter entry |
632 |
// ok, got new shutdown - filter entry |
| 633 |
if (server->shtdn_ipl_type != IPL_INVALID) |
633 |
if (server->shtdn_ipl_type != IPL_INVALID) |
| 634 |
{ |
634 |
{ |
| 635 |
iplentry = (struct ipl_item_t*)list_add(&shtdn_ipl, sizeof(struct ipl_item_t)); |
635 |
iplentry = (struct ipl_item_t*)ll_list_add(&shtdn_ipl, sizeof(struct ipl_item_t)); |
| 636 |
if ( !iplentry ) |
636 |
if ( !iplentry ) |
| 637 |
{ |
637 |
{ |
| 638 |
server->shtdn_ipl_type = IPL_INVALID; |
638 |
server->shtdn_ipl_type = IPL_INVALID; |