Browse Source

make sure we always have a session to work with

git.mgm/mediaproxy-ng/2.2
Richard Fuchs 13 years ago
parent
commit
c956a371ac
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      daemon/sdp.c

+ 4
- 0
daemon/sdp.c View File

@ -471,6 +471,10 @@ int sdp_parse(str *body, GQueue *sessions) {
goto error;
}
errstr = "SDP doesn't start with a session definition";
if (!session)
goto error;
adj_s = media ? &media->s : &session->s;
adj_s->len = (next_line ? : end) - adj_s->s;


Loading…
Cancel
Save