mirror of https://github.com/moparisthebest/curl
rtsp: avoid SIGSEGV on malformed header
This commit is contained in:
parent
62ef465262
commit
f3e3f5f1b2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue