From f0eaa2a4c2bae027788119d71d3495dd14963574 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Apr 20 2018 15:10:24 +0000 Subject: Ticket 49644 - crash in debug build Description: In a debug build of the server it crashes when searching the cn=config. This is due to a pointer not being initialized before being dereferenced. https://pagure.io/389-ds-base/issue/49644 Reviewed by: mreynolds(one line commit rule) (cherry picked from commit 5bfc18a245405229bd7bd2acfee681e68df338d6) --- diff --git a/ldap/servers/slapd/back-ldbm/monitor.c b/ldap/servers/slapd/back-ldbm/monitor.c index 5f57b9f..e4eb3d1 100644 --- a/ldap/servers/slapd/back-ldbm/monitor.c +++ b/ldap/servers/slapd/back-ldbm/monitor.c @@ -157,7 +157,7 @@ ldbm_back_monitor_instance_search(Slapi_PBlock *pb __attribute__((unused)), #ifdef DEBUG { /* debugging for hash statistics */ - char *x; + char *x = NULL; cache_debug_hash(&(inst->inst_cache), &x); val.bv_val = x; val.bv_len = strlen(x);