Ver código fonte

Fix for Juhas memory bug.
(not deferenced pointer)

Nils Ohlmeier 23 anos atrás
pai
commit
9ba0386800
1 arquivos alterados com 1 adições e 1 exclusões
  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 ;
 	}