rtsp: avoid SIGSEGV on malformed header

This commit is contained in:
Kamil Dudka 2010-09-06 15:31:01 +02:00
parent 62ef465262
commit f3e3f5f1b2

View File

@ -706,7 +706,7 @@ CURLcode Curl_rtsp_parseheader(struct connectdata *conn,
/* Find the first non-space letter */ /* Find the first non-space letter */
start = header + 9; start = header + 9;
while(*start && ISSPACE(*start)) while(start && ISSPACE(*start))
start++; start++;
if(!start) { if(!start) {