Changes in uspace/srv/net/net/net.c [5fe7692:eb277fa7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.c
r5fe7692 reb277fa7 555 555 rc = read_netif_configuration(conf_files[i], netif); 556 556 if (rc != EOK) { 557 measured_strings_destroy(&netif->configuration , free);557 measured_strings_destroy(&netif->configuration); 558 558 free(netif); 559 559 return rc; … … 565 565 if (!setting) { 566 566 fprintf(stderr, "%s: Network interface name is missing\n", NAME); 567 measured_strings_destroy(&netif->configuration , free);567 measured_strings_destroy(&netif->configuration); 568 568 free(netif); 569 569 return EINVAL; … … 574 574 int index = netifs_add(&net_globals.netifs, netif->id, netif); 575 575 if (index < 0) { 576 measured_strings_destroy(&netif->configuration , free);576 measured_strings_destroy(&netif->configuration); 577 577 free(netif); 578 578 return index; … … 586 586 index); 587 587 if (rc != EOK) { 588 measured_strings_destroy(&netif->configuration , free);589 netifs_exclude_index(&net_globals.netifs, index , free);588 measured_strings_destroy(&netif->configuration); 589 netifs_exclude_index(&net_globals.netifs, index); 590 590 return rc; 591 591 } … … 595 595 printf("%s: Ignoring failed interface %s (%s)\n", NAME, 596 596 netif->name, str_error(rc)); 597 measured_strings_destroy(&netif->configuration , free);598 netifs_exclude_index(&net_globals.netifs, index , free);597 measured_strings_destroy(&netif->configuration); 598 netifs_exclude_index(&net_globals.netifs, index); 599 599 continue; 600 600 }
Note:
See TracChangeset
for help on using the changeset viewer.