]> granicus.if.org Git - curl/commitdiff
rtsp: avoid SIGSEGV on malformed header
authorKamil Dudka <kdudka@redhat.com>
Mon, 6 Sep 2010 13:31:01 +0000 (15:31 +0200)
committerKamil Dudka <kdudka@redhat.com>
Mon, 6 Sep 2010 13:31:01 +0000 (15:31 +0200)
lib/rtsp.c

index 032f58f7e0b0ca1dfd6b7158dd0df7a97c3320e5..16dfa27cb518005f52d773fc330dd4d4f4a8f348 100644 (file)
@@ -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) {