Browse Source

Bug 613056 - fix coverify Defect Type: Null pointer dereferences issues 11892 - 11939

https://bugzilla.redhat.com/show_bug.cgi?id=613056
Resolves: bug 613056
Bug description: Fix coverify Defect Type: Null pointer dereferences issues 11892 - 11939
description: Catch possible NULL pointer in load_config().
Endi S. Dewata 15 years ago
parent
commit
10d403542c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ldap/servers/snmp/main.c

+ 4 - 0
ldap/servers/snmp/main.c

@@ -373,6 +373,10 @@ load_config(char *conf_path)
                     instancename = NULL;
                     goto close_and_exit;
                 }
+            } else {
+                printf("ldap-agent: missing instance name\n");
+                error = 1;
+                goto close_and_exit;
             }
  
             /* Open dse.ldif */