mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
remotestrunk
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user