Changeset 39804 in vbox
- Timestamp:
- Jan 19, 2012 9:41:09 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/socket.h
r37196 r39804 118 118 * 119 119 * @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. 121 124 * @param uPort Port number (host byte order). 122 125 * @param pAddr Where to return the generic IPRT network address. -
trunk/src/VBox/Runtime/r3/socket.cpp
r39802 r39804 623 623 */ 624 624 AssertReturn(uPort > 0, VERR_INVALID_PARAMETER); 625 AssertPtr Return(pszAddress, VERR_INVALID_POINTER);625 AssertPtrNullReturn(pszAddress, VERR_INVALID_POINTER); 626 626 627 627 #ifdef RT_OS_WINDOWS … … 647 647 * It probably needs to be converted to getaddrinfo(). */ 648 648 RTNETADDRIPV4 IPv4Quad; 649 if (rtSocketIsIPv4Numerical(pszAddress, &IPv4Quad)) 649 if ( !pszAddress 650 || rtSocketIsIPv4Numerical(pszAddress, &IPv4Quad)) 650 651 { 651 652 Log3(("rtSocketIsIPv4Numerical: %#x (%RTnaipv4)\n", pszAddress, IPv4Quad.u, IPv4Quad));
Note:
See TracChangeset
for help on using the changeset viewer.