mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
avoiding racelock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7297 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
a600e2e1c9
commit
6a5c7a933d
2 files changed
+11
-4
No files matched your search
@@ -621,6 +621,9 @@ SWITCH_DECLARE(switch_status_t) switch_socket_send(switch_socket_t * sock, const
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_socket_sendto(switch_socket_t * sock, switch_sockaddr_t * where, int32_t flags, const char *buf, switch_size_t *len)
|
||||
{
|
||||
if (!where || !buf || !len || !*len) {
|
||||
return SWITCH_STATUS_GENERR;
|
||||
}
|
||||
return apr_socket_sendto(sock, where, flags, buf, len);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user