diff --git a/daemon/sdp.c b/daemon/sdp.c index 8cf3b4a69..3b9900260 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -496,6 +496,9 @@ str *sdp_replace(str *body, GQueue *sessions, struct call *call, int num, enum c if (replace_network_address(&chop, &media->connection.address, m, off, flags)) goto error; } + + if (m) + m = m->next; } }