Explorar o código

Static buffer is resetted before calling the route block -- Thanks to Jan.

Miklos Tirpak %!s(int64=16) %!d(string=hai) anos
pai
achega
131ecc8c0c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      modules/tm/t_suspend.c

+ 3 - 0
modules/tm/t_suspend.c

@@ -30,6 +30,8 @@
  *
  */
 
+#include "../../select_buf.h" /* reset_static_buffer() */
+
 #include "sip_msg.h"
 #include "t_reply.h"
 #include "h_table.h"
@@ -148,6 +150,7 @@ int t_continue(unsigned int hash_index, unsigned int label,
 	}
 	faked_env( t, &faked_req);
 
+	reset_static_buffer();
 	init_run_actions_ctx(&ra_ctx);
 	if (run_actions(&ra_ctx, route, &faked_req)<0)
 		LOG(L_ERR, "ERROR: t_continue: Error in run_action\n");