rtsp: safer buffer handling

This commit is contained in:
James Laird
2013-04-03 23:35:14 +11:00
parent d3e89828c5
commit 171e5d42ef
+1 -1
View File
@@ -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;