From f3e3f5f1b26991b1c6660382d7c2eb74fab3d3e9 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 6 Sep 2010 15:31:01 +0200 Subject: rtsp: avoid SIGSEGV on malformed header --- lib/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rtsp.c') diff --git a/lib/rtsp.c b/lib/rtsp.c index 032f58f7e..16dfa27cb 100644 --- a/lib/rtsp.c +++ b/lib/rtsp.c @@ -706,7 +706,7 @@ CURLcode Curl_rtsp_parseheader(struct connectdata *conn, /* Find the first non-space letter */ start = header + 9; - while(*start && ISSPACE(*start)) + while(start && ISSPACE(*start)) start++; if(!start) { -- cgit v1.2.3