[Freeswitch-svn] [commit] r8453 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri May 16 15:11:45 EDT 2008


Author: mikej
Date: Fri May 16 15:11:44 2008
New Revision: 8453

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
tweak asserts. Found by Klockwork (www.klocwork.com)

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Fri May 16 15:11:44 2008
@@ -201,12 +201,12 @@
 	unsigned int elapsed;
 	switch_size_t bytes;
 	switch_status_t status = SWITCH_STATUS_SUCCESS;
-
-	WRITE_INC(rtp_session);
 	
 	switch_assert(rtp_session != NULL);
 	switch_assert(rtp_session->ice_user != NULL);
 
+	WRITE_INC(rtp_session);
+
 	if (rtp_session->stuncount != 0) {
 		rtp_session->stuncount--;
 		goto end;



More information about the Freeswitch-svn mailing list