Browse Source

Fix for Juhas memory bug.
(not deferenced pointer)

Nils Ohlmeier 23 years ago
parent
commit
9ba0386800
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/tm/t_msgbuilder.c

+ 1 - 1
modules/tm/t_msgbuilder.c

@@ -100,7 +100,7 @@ char *build_local(struct cell *Trans,unsigned int branch,
 	if (!Trans->local) {
 		for ( hdr=Trans->uas.request->headers ; hdr ; hdr=hdr->next )
 			 if (hdr->type==HDR_ROUTE)
-				len+=((hdr->body.s+hdr->body.len ) - hdr->name.s ) + 
+				*len+=((hdr->body.s+hdr->body.len ) - hdr->name.s ) + 
 					CRLF_LEN ;
 	}