VirtualBox

Ignore:
Timestamp:
Nov 28, 2011 6:22:46 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75059
Message:

Main/NetIf: Fixed segmentation fault in VBoxSVC on host-creation failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp

    r37423 r39429  
    205205                        RTMemFree(pInfo);
    206206                    }
     207                    if ((rc = pclose(fp)) != 0)
     208                    {
     209                        progress->notifyComplete(E_FAIL,
     210                                                 COM_IIDOF(IHostNetworkInterface),
     211                                                 HostNetworkInterface::getStaticComponentName(),
     212                                                 "Failed to execute '"VBOXNETADPCTL_NAME " add' (exit status: %d)", rc);
     213                        rc = VERR_INTERNAL_ERROR;
     214                    }
    207215                }
    208                 if ((rc = pclose(fp)) != 0)
     216                else
    209217                {
     218                    /* Failed to add an interface */
     219                    rc = VERR_PERMISSION_DENIED;
    210220                    progress->notifyComplete(E_FAIL,
    211221                                             COM_IIDOF(IHostNetworkInterface),
    212222                                             HostNetworkInterface::getStaticComponentName(),
    213                                              "Failed to execute '"VBOXNETADPCTL_NAME " add' (exit status: %d)", rc);
    214                     rc = VERR_INTERNAL_ERROR;
     223                                             "Failed to execute '"VBOXNETADPCTL_NAME " add' (exit status: %d). Check permissions!", rc);
     224                    pclose(fp);
    215225                }
    216226            }
    217227            if (RT_SUCCESS(rc))
    218228                progress->notifyComplete(rc);
     229            else
     230                hrc = E_FAIL;
    219231        }
    220232    }
Note: See TracChangeset for help on using the changeset viewer.

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