summaryrefslogtreecommitdiffstats
path: root/ldap/servers/snmp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers/snmp/main.c')
-rw-r--r--ldap/servers/snmp/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldap/servers/snmp/main.c b/ldap/servers/snmp/main.c
index 04c4ee3f..a216d34d 100644
--- a/ldap/servers/snmp/main.c
+++ b/ldap/servers/snmp/main.c
@@ -411,7 +411,10 @@ load_config(char *conf_path)
int vlen;
#endif
/* Check if this is the cn=config entry */
- ldif_parse_line(ldif_getline(&entryp), &attr, &val, &vlen);
+ if (ldif_parse_line(ldif_getline(&entryp), &attr, &val, &vlen)) {
+ printf("ldap-agent: error parsing ldif line from [%s]\n", serv_p->dse_ldif);
+ }
+
if ((strcmp(attr, "dn") == 0) &&
(strcmp(val, "cn=config") == 0)) {
char *dse_line = NULL;