remotestrunk

This commit is contained in:
Greg Wroblewski
2012-11-13 11:44:38 -08:00
parent 74b8daaadd
commit 42aa054089
3 changed files with 9 additions and 4 deletions

View File

@@ -87,6 +87,11 @@ char *GetIpAddr(apr_pool_t *pool, PSOCKADDR pAddr)
DWORD len = 50;
char *buf = (char *)apr_palloc(pool, len);
if(buf == NULL)
return "";
buf[0] = 0;
WSAAddressToString(pAddr, sizeof(SOCKADDR), NULL, buf, &len);
return buf;