Browse Source

*** empty log message ***

Mike Goslin 25 years ago
parent
commit
9590690313
1 changed files with 5 additions and 0 deletions
  1. 5 0
      panda/src/downloader/downloader.cxx

+ 5 - 0
panda/src/downloader/downloader.cxx

@@ -722,6 +722,11 @@ parse_header(DownloadStatus &status) {
       downloader_cat.error()
 	<< "Downloader::parse_header() - No newlines in buffer!" << endl;
       return false;
+    } else if (p == 0 && nl == p) {
+      downloader_cat.error()
+        << "Downloader::parse_header() - Buffer begins with newline!"
+	<< endl;
+	return false;
     }
 
     string component = bufstr.substr(p, nl - p);