Browse Source

- yet another t_write fix

Andrei Pelinescu-Onciul 21 years ago
parent
commit
47f3542f04
2 changed files with 3 additions and 2 deletions
  1. 1 1
      Makefile.defs
  2. 2 1
      modules/tm/t_fifo.c

+ 1 - 1
Makefile.defs

@@ -50,7 +50,7 @@ MAIN_NAME=ser
 VERSION = 0
 PATCHLEVEL = 8
 SUBLEVEL =   99
-EXTRAVERSION = -dev18
+EXTRAVERSION = -dev19
 
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")

+ 2 - 1
modules/tm/t_fifo.c

@@ -800,7 +800,8 @@ static int assemble_msg(struct sip_msg* msg, struct tw_info *twi)
 	DBG("assemble_msg: next r-uri: %.*s\n",
 	    str_uri.len,str_uri.len ? str_uri.s : "");
 	
-	if ( REQ_LINE(msg).method_value==METHOD_INVITE || twi->append->add_body ) {
+	if ( REQ_LINE(msg).method_value==METHOD_INVITE || 
+			(twi->append && twi->append->add_body) ) {
 		/* get body */
 		if( (body.s = get_body(msg)) == 0 ){
 			LOG(L_ERR, "assemble_msg: get_body failed\n");