2006-07-19 17:40:47 -04:00
|
|
|
$OpenBSD: patch-libmpdemux_realrtsp_rtsp_c,v 1.3 2006/07/19 21:40:47 robert Exp $
|
|
|
|
--- libmpdemux/realrtsp/rtsp.c.orig Sun Jun 11 20:35:46 2006
|
|
|
|
+++ libmpdemux/realrtsp/rtsp.c Thu Jul 6 00:08:12 2006
|
|
|
|
@@ -280,7 +280,7 @@ static char *rtsp_get(rtsp_t *s) {
|
|
|
|
read_stream(s->s, buffer, 1);
|
2005-08-27 17:11:49 -04:00
|
|
|
while (n<BUF_SIZE) {
|
|
|
|
read_stream(s->s, &(buffer[n]), 1);
|
|
|
|
- if ((buffer[n-1]==0x0d)&&(buffer[n]==0x0a)) break;
|
|
|
|
+ if (n > 0 &&(buffer[n-1]==0x0d)&&(buffer[n]==0x0a)) break;
|
|
|
|
n++;
|
|
|
|
}
|
|
|
|
|