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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3e3f5f1b26991b1c6660382d7c2eb74fab3d3e9;p=thirdparty%2Fcurl.git rtsp: avoid SIGSEGV on malformed header --- diff --git a/lib/rtsp.c b/lib/rtsp.c index 032f58f7e0..16dfa27cb5 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) {