Ver código fonte

- fixed cleanup condition - in all cases, if the SHM request is present, scan it and clean it after a callback run.
The previous condition was not covering all cases (ACK accouting was still missing the cleanup)


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3884 689a6050-402a-0410-94f2-e92a70836424

Bogdan-Andrei Iancu 17 anos atrás
pai
commit
6baa764d82
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      modules_k/tm/t_hooks.c

+ 2 - 2
modules_k/tm/t_hooks.c

@@ -205,8 +205,8 @@ void run_trans_callbacks( int type , struct cell *trans,
 			cbp->callback( trans, type, &params );
 			cbp->callback( trans, type, &params );
 		}
 		}
 	}
 	}
-	/* message cleanup */
-	if (req && req==trans->uas.request && req->msg_flags&FL_SHM_CLONE)
+	/* SHM message cleanup */
+	if (trans->uas.request && trans->uas.request->msg_flags&FL_SHM_CLONE)
 		clean_msg_clone( req, trans->uas.request, trans->uas.end_request);
 		clean_msg_clone( req, trans->uas.request, trans->uas.end_request);
 	/* env cleanup */
 	/* env cleanup */
 	set_avp_list( backup );
 	set_avp_list( backup );