VirtualBox

Ignore:
Timestamp:
Jan 28, 2009 12:39:43 PM (16 years ago)
Author:
vboxsync
Message:

NAT:DNS freeing DNS server list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r16296 r16303  
    433433    if (get_dns_addr_domain(pData, true, &dns_addr, &pData->pszDomain) < 0)
    434434#else
     435    LIST_INIT(&pData->dns_list_head);
    435436    if (get_dns_addr_domain(pData, true, NULL, &pData->pszDomain) < 0)
    436437#endif
     
    500501void slirp_term(PNATState pData)
    501502{
     503#ifdef VBOX_WITH_MULTI_DNS
     504    struct dns_entry *de = NULL;
     505#endif
    502506    if (pData->pszDomain)
    503507        RTStrFree((char *)(void *)pData->pszDomain);
     
    512516
    513517    slirp_link_down(pData);
     518#ifdef VBOX_WITH_MULTI_DNS
     519    while(!LIST_EMPTY(&pData->dns_list_head)) {
     520        de = LIST_FIRST(&pData->dns_list_head);
     521        LIST_REMOVE(de, de_list);
     522        RTMemFree(de);
     523    }
     524#endif
    514525#ifdef RT_OS_WINDOWS
    515526    WSACleanup();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette