mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
ditto
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11082 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
c576ef7a6e
commit
abb2691bde
4 files changed
+17
-10
No files matched your search
+2
-2
@@ -761,9 +761,9 @@ SWITCH_DECLARE(switch_status_t) switch_socket_atmark(switch_socket_t *sock, int
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_socket_recvfrom(switch_sockaddr_t *from, switch_socket_t *sock, int32_t flags, char *buf, size_t *len)
|
||||
{
|
||||
apr_status_t r;
|
||||
apr_status_t r = SWITCH_STATUS_GENERR;
|
||||
|
||||
if ((r = apr_socket_recvfrom(from, sock, flags, buf, len)) == APR_SUCCESS) {
|
||||
if (from && sock && (r = apr_socket_recvfrom(from, sock, flags, buf, len)) == APR_SUCCESS) {
|
||||
from->port = ntohs(from->sa.sin.sin_port);
|
||||
/* from->ipaddr_ptr = &(from->sa.sin.sin_addr);
|
||||
* from->ipaddr_ptr = inet_ntoa(from->sa.sin.sin_addr);
|
||||
|
||||
Reference in new issue
Block a user