blob: 04a9f0cce6f320935c5ce566730af52114a30617 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ba,v 1.3 2005/04/16 17:43:09 drochner Exp $
--- libmpdemux/realrtsp/rtsp.c.orig 2005-04-16 21:08:44.000000000 +0200
+++ libmpdemux/realrtsp/rtsp.c
@@ -397,6 +397,7 @@ static int rtsp_get_answers(rtsp_t *s) {
unsigned int answer_seq;
char **answer_ptr=s->answers;
int code;
+ int ans_count = 0;
answer=rtsp_get(s);
if (!answer)
@@ -448,7 +449,7 @@ static int rtsp_get_answers(rtsp_t *s) {
}
*answer_ptr=answer;
answer_ptr++;
- } while (strlen(answer)!=0);
+ } while ((strlen(answer)!=0) && (++ans_count < MAX_FIELDS));
s->cseq++;
|