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 032f58f..16dfa27 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) {