- extra check for filelists handling avoiding crashing in some cases
authorpmatilai <pmatilai>
Fri, 2 Jun 2006 12:09:34 +0000 (12:09 +0000)
committerpmatilai <pmatilai>
Fri, 2 Jun 2006 12:09:34 +0000 (12:09 +0000)
apt-pkg/rpm/rpmhandler.cc

index bad4120..39e2a7f 100644 (file)
@@ -1357,6 +1357,9 @@ bool RPMRepomdHandler::FileProvides(vector<string> &FileProvs)
       }
    } else {
       xmlNode *FlP = xmlTextReaderExpand(Filelist);
+      if (FlP == NULL) {
+        return false;
+      }
       for (xmlNode *n = FlP->children; n; n = n->next) {
          if (xmlStrcmp(n->name, (xmlChar*)"file") != 0) 
            continue;