File net-snmp-5.7.1-snmplib-default-retries.patch of Package net-snmp

commit cf82b894b2217c26edc6f1356351c932415604e2
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Oct 15 14:45:08 2011 +0200

    CHANGES: snmplib: BUG: 3423915: Change default number of retries back from 0 to 5
    
    This patch fixes a bug introduced via commit 6cac050 (May 5, 2011,
    added support for specifying the default number of retries in
    snmpd.conf).

diff --git a/snmplib/snmp_api.c b/snmplib/snmp_api.c
index 980b6f8..61cfa39 100644
--- a/snmplib/snmp_api.c
+++ b/snmplib/snmp_api.c
@@ -704,6 +704,8 @@ _init_snmp(void)
 
     netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, 
                        NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH, 16);
+    netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_RETRIES,
+                       DEFAULT_RETRIES);
 
 #ifdef NETSNMP_USE_REVERSE_ASNENCODING
     netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, 
openSUSE Build Service is sponsored by