diff freeDiameter/p_psm.c @ 79:d273a2ce19c8

Fix problem in DPR handling
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 02 Dec 2009 10:25:59 +0900
parents a58f0757c06a
children 66a00b701f02
line wrap: on
line diff
--- a/freeDiameter/p_psm.c	Tue Dec 01 16:24:06 2009 +0900
+++ b/freeDiameter/p_psm.c	Wed Dec 02 10:25:59 2009 +0900
@@ -538,11 +538,8 @@
 				peer->p_flags.pf_cnx_pb = 1;
 				
 			case STATE_CLOSING:
-				/* Cleanup the peer */
-				fd_psm_cleanup(peer, 0);
-
-				/* Reset the timer */
-				fd_psm_next_timeout(peer, 1, peer->p_hdr.info.config.pic_tctimer ?: fd_g_config->cnf_timer_tc);
+				/* We sent a DPR so we are terminating, do not wait for DPA */
+				goto psm_end;
 				
 			case STATE_CLOSED:
 				/* Just ignore */
"Welcome to our mercurial repository"