ldap/servers/snmp/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9b5d9e6dd001043f18259c5922b45020ea5e835f
Author: Nathan Kinder <nkinder(a)redhat.com>
Date: Tue Mar 1 13:44:45 2011 -0800
Bug 674852 - crash in ldap-agent when using OpenLDAP
The ldap-agent daemon can crash at startup due to an uninitialized
variable being used to represent a buffer length. This patch
initializes the buffer length properly.
diff --git a/ldap/servers/snmp/main.c b/ldap/servers/snmp/main.c
index f4ca8af..a255880 100644
--- a/ldap/servers/snmp/main.c
+++ b/ldap/servers/snmp/main.c
@@ -248,7 +248,7 @@ load_config(char *conf_path)
FILE *conf_file = NULL;
#if defined(USE_OPENLDAP)
LDIFFP *dse_fp = NULL;
- int buflen;
+ int buflen = 0;
#else
FILE *dse_fp = NULL;
#endif
Show replies by date