Pārlūkot izejas kodu

modules/msrp: From-Path: not updated correctly in msrp_relay()

- When the last To-Path-URI is pre-pended to the From-Path: header the first
  two characters of "From-Path: " are skipped, leaving "om-Path: ".  11
  characters should actually be skipped.
Peter Dunkley 13 gadi atpakaļ
vecāks
revīzija
d9c2638bd2
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      modules/msrp/msrp_netio.c

+ 2 - 2
modules/msrp/msrp_netio.c

@@ -108,8 +108,8 @@ int msrp_relay(msrp_frame_t *mf)
 	memcpy(p, tpath->body.s, l + 1 - tpath->body.s);
 	p += l + 1 - tpath->body.s;
 
-	memcpy(p, fpath->name.s + 2, mf->buf.s + mf->buf.len - fpath->name.s - 2);
-	p += mf->buf.s + mf->buf.len - fpath->name.s - 2;
+	memcpy(p, fpath->name.s + 11, mf->buf.s + mf->buf.len - fpath->name.s - 11);
+	p += mf->buf.s + mf->buf.len - fpath->name.s - 11;
 
 
 	env = msrp_get_env();