mirror of
https://github.com/curl/curl.git
synced 2025-09-29 07:26:48 +03:00
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 */
|
/* 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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user