Browse code

- totag bmark set to NULL when no totag present, fix from Quang Minh Phan <quang-minh.phan@wengo.fr>.

Andrei Pelinescu-Onciul authored on 17/01/2006 15:30:48
Showing 1 changed files
... ...
@@ -1796,7 +1796,10 @@ char * build_res_buf_from_sip_req( unsigned int code, char *text ,str *new_tag,
1796 1796
 					bmark->to_tag_val.s=p+(totags-hdr->name.s);
1797 1797
 					bmark->to_tag_val.len=
1798 1798
 							((struct to_body*)(hdr->parsed))->tag_value.len;
1799
-				};
1799
+				}else{
1800
+					bmark->to_tag_val.s=0;
1801
+					bmark->to_tag_val.len=0;
1802
+				}
1800 1803
 			case HDR_FROM:
1801 1804
 			case HDR_CALLID:
1802 1805
 			case HDR_CSEQ: