Commit f3e3f5f1 authored by Kamil Dudka's avatar Kamil Dudka
Browse files

rtsp: avoid SIGSEGV on malformed header

parent 62ef4652
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {