VirtualBox

Changeset 39804 in vbox


Ignore:
Timestamp:
Jan 19, 2012 9:41:09 AM (13 years ago)
Author:
vboxsync
Message:

Fixed regression (I hope) in yesterdays tcp/socket changes (name resolution).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/socket.h

    r37196 r39804  
    118118 *
    119119 * @returns IPRT status code
    120  * @param   pszAddress      Name or IP address.
     120 * @param   pszAddress      Name or IP address.  NULL or empty string (no
     121 *                          spaces) is taken to mean INADDR_ANY, which is
     122 *                          meaningful when binding a server socket for
     123 *                          instance.
    121124 * @param   uPort           Port number (host byte order).
    122125 * @param   pAddr           Where to return the generic IPRT network address.
  • trunk/src/VBox/Runtime/r3/socket.cpp

    r39802 r39804  
    623623     */
    624624    AssertReturn(uPort > 0, VERR_INVALID_PARAMETER);
    625     AssertPtrReturn(pszAddress, VERR_INVALID_POINTER);
     625    AssertPtrNullReturn(pszAddress, VERR_INVALID_POINTER);
    626626
    627627#ifdef RT_OS_WINDOWS
     
    647647     * It probably needs to be converted to getaddrinfo(). */
    648648    RTNETADDRIPV4 IPv4Quad;
    649     if (rtSocketIsIPv4Numerical(pszAddress, &IPv4Quad))
     649    if (   !pszAddress
     650        || rtSocketIsIPv4Numerical(pszAddress, &IPv4Quad))
    650651    {
    651652        Log3(("rtSocketIsIPv4Numerical: %#x (%RTnaipv4)\n", pszAddress, IPv4Quad.u, IPv4Quad));
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