Ticket #111 (closed defect: fixed)
Liana ip to str is broken
| Reported by: | edsiper | Owned by: | zeus |
|---|---|---|---|
| Priority: | major | Milestone: | 0.30 |
| Component: | Unspecified | Version: | |
| Keywords: | Cc: |
Description
Logger plugin is not working because is not able to get the IP address converted to string format, the Liana function _mkp_network_io_ip_str() is failing inside the getpeername() call:
if(getpeername(socket_fd, addr, &len) == -1 ) {
PLUGIN_TRACE("[FD %i] Can't get addr for this socket", socket_fd);
mk_api->mem_free(ip);
return NULL;
}
the error is "invalid address"
Change History
Note: See
TracTickets for help on using
tickets.

Fixed, it was a problem dealing with the return error and the sockaddr var
commit: 72a9a427bf5a8e646a8c630def85f3c94aed2db5