Skip to content

Commit

Permalink
rtsp: safer buffer handling
Browse files Browse the repository at this point in the history
  • Loading branch information
abrasive committed Apr 3, 2013
1 parent d3e8982 commit 171e5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static void handle_announce(rtsp_conn_info *conn,
char *cp = req->content;
int cp_left = req->contentlength;
char *next;
while (cp) {
while (cp_left && cp) {
next = nextline(cp, cp_left);
cp_left -= next-cp;

Expand Down

0 comments on commit 171e5d4

Please sign in to comment.