From: Kamil Dudka Date: Mon, 6 Sep 2010 13:31:01 +0000 (+0200) Subject: rtsp: avoid SIGSEGV on malformed header X-Git-Tag: curl-7_21_2~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3e3f5f1b26991b1c6660382d7c2eb74fab3d3e9;p=curl rtsp: avoid SIGSEGV on malformed header --- 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) {