Skip to content

Commit

Permalink
dialog: secure space in case \r\n needs to be added after extra headers
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 2, 2016
1 parent a311bfb commit e4d1742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dlg_req_within.c
Expand Up @@ -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)
Expand Down

0 comments on commit e4d1742

Please sign in to comment.