[Freeswitch-svn] [commit] r8620 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/sresolv
Freeswitch SVN
mikej at freeswitch.org
Sun May 25 11:08:39 EDT 2008
Author: mikej
Date: Sun May 25 11:08:38 2008
New Revision: 8620
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_blocking.c
Log:
Tue May 20 12:15:42 EDT 2008 Pekka.Pessi at nokia.com
* sres_blocking.c: fixed klocwork issues
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Sun May 25 11:08:38 2008
@@ -1 +1 @@
-Sun May 25 11:07:19 EDT 2008
+Sun May 25 11:08:26 EDT 2008
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_blocking.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_blocking.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_blocking.c Sun May 25 11:08:38 2008
@@ -111,7 +111,7 @@
sres_socket_t new_socket,
sres_socket_t old_socket)
{
- int i, N = b->n_sockets;
+ int i, N;
if (b == NULL)
return -1;
@@ -123,6 +123,8 @@
return 0;
}
+ N = b->n_sockets;
+
if (old_socket != INVALID_SOCKET) {
for (i = 0; i < N; i++) {
if (b->fds[i].fd == old_socket)
More information about the Freeswitch-svn
mailing list