Browse code

- yet another t_write fix

Andrei Pelinescu-Onciul authored on 23/11/2004 09:56:00
Showing 2 changed files
... ...
@@ -50,7 +50,7 @@ MAIN_NAME=ser
50 50
 VERSION = 0
51 51
 PATCHLEVEL = 8
52 52
 SUBLEVEL =   99
53
-EXTRAVERSION = -dev18
53
+EXTRAVERSION = -dev19
54 54
 
55 55
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
56 56
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -800,7 +800,8 @@ static int assemble_msg(struct sip_msg* msg, struct tw_info *twi)
800 800
 	DBG("assemble_msg: next r-uri: %.*s\n",
801 801
 	    str_uri.len,str_uri.len ? str_uri.s : "");
802 802
 	
803
-	if ( REQ_LINE(msg).method_value==METHOD_INVITE || twi->append->add_body ) {
803
+	if ( REQ_LINE(msg).method_value==METHOD_INVITE || 
804
+			(twi->append && twi->append->add_body) ) {
804 805
 		/* get body */
805 806
 		if( (body.s = get_body(msg)) == 0 ){
806 807
 			LOG(L_ERR, "assemble_msg: get_body failed\n");