Explorar el Código

dialog: secure space in case \r\n needs to be added after extra headers

Daniel-Constantin Mierla hace 8 años
padre
commit
e4d17429ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      modules/dialog/dlg_req_within.c

+ 1 - 1
modules/dialog/dlg_req_within.c

@@ -329,7 +329,7 @@ static inline int build_extra_hdr(struct dlg_cell * cell, str *extra_hdrs,
 	if(extra_hdrs && extra_hdrs->len>0)
 		str_hdr->len += extra_hdrs->len;
 
-	blen = str_hdr->len + 1 /* '\0' */;
+	blen = str_hdr->len + 3 /* '\r\n\0' */;
 
 	/* reserve space for callee headers in local requests */
 	if(dlg_lreq_callee_headers.len>0)