From 70e8152b396f5afacd1db3d8e133390f8238c504 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 16 May 2008 19:11:44 +0000 Subject: [PATCH] tweak asserts. Found by Klockwork (www.klocwork.com) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8453 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 217bbd0741..f40c0028e0 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -201,12 +201,12 @@ static switch_status_t ice_out(switch_rtp_t *rtp_session) 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;