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:
parent
5f65acd306
commit
64c24236f1
|
@ -1 +1 @@
|
|||
Wed Sep 10 12:23:16 EDT 2008
|
||||
Wed Sep 10 12:23:38 EDT 2008
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue