avoiding racelock

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7297 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2008-01-19 02:27:26 +00:00
1 parent a600e2e1c9
commit 6a5c7a933d
2 files changed
+11 -4

No files matched your search

+3
View File
@@ -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);
}