]> git.pld-linux.org Git - packages/net-snmp.git/blobdiff - net-snmp-libpci-init.patch
- backport bug 3460364 (Fix use of block factor when detecting error conditions)
[packages/net-snmp.git] / net-snmp-libpci-init.patch
index b0a80f53e5b355af78ccb41bc129e5f529368bee..4adca98f434097e89f6423168959cefd78e9c87a 100644 (file)
@@ -19,7 +19,7 @@
  #endif
  
  #ifdef HAVE_LINUX_ETHTOOL_H
-@@ -146,9 +158,14 @@
+@@ -146,9 +158,15 @@
  
  #ifdef HAVE_PCI_LOOKUP_NAME
      pci_access = pci_alloc();
@@ -31,6 +31,7 @@
 +      if (_net_snmp_pci_status == 0) {
 +          pci_cleanup(pci_access);
 +          pci_access = NULL;
++          snmp_log(LOG_ERR, "Unable to create pci access method (libpci)\n");
 +      }
 +    } else
        snmp_log(LOG_ERR, "Unable to create pci access method\n");
This page took 0.105369 seconds and 4 git commands to generate.