Wed Sep 10 11:45:25 EDT 2008 Pekka Pessi <first.last@nokia.com>

* soa_static.c: soa_static_process_reject() backs up only if it has to back up



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9516 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-09-10 16:23:44 +00:00
parent 5f65acd306
commit 64c24236f1
2 changed files with 11 additions and 7 deletions

View File

@ -1 +1 @@
Wed Sep 10 12:23:16 EDT 2008
Wed Sep 10 12:23:38 EDT 2008

View File

@ -1473,13 +1473,17 @@ static int soa_static_process_reject(soa_session_t *ss,
{
struct soa_description d[1];
*d = *ss->ss_local;
*ss->ss_local = *ss->ss_previous;
ss->ss_local_user_version = ss->ss_previous_user_version;
ss->ss_local_remote_version = ss->ss_previous_remote_version;
if (ss->ss_previous_user_version) {
*d = *ss->ss_local;
*ss->ss_local = *ss->ss_previous;
ss->ss_local_user_version = ss->ss_previous_user_version;
ss->ss_local_remote_version = ss->ss_previous_remote_version;
memset(ss->ss_previous, 0, (sizeof *ss->ss_previous));
soa_description_free(ss, d);
memset(ss->ss_previous, 0, (sizeof *ss->ss_previous));
soa_description_free(ss, d);
ss->ss_previous_user_version = 0;
ss->ss_previous_remote_version = 0;
}
return soa_base_process_reject(ss, NULL);
}