diff options
Diffstat (limited to 'daemons/ipa-slapi-plugins/topology/topology_util.c')
-rw-r--r-- | daemons/ipa-slapi-plugins/topology/topology_util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/daemons/ipa-slapi-plugins/topology/topology_util.c b/daemons/ipa-slapi-plugins/topology/topology_util.c index b71a4399b..ea9a9c74c 100644 --- a/daemons/ipa-slapi-plugins/topology/topology_util.c +++ b/daemons/ipa-slapi-plugins/topology/topology_util.c @@ -448,8 +448,10 @@ ipa_topo_util_get_conf_for_segment(Slapi_Entry *segment_entry) char *parent = slapi_dn_parent(slapi_entry_get_dn_const(segment_entry)); Slapi_Entry *conf = ipa_topo_util_get_entry(parent); - tconf = ipa_topo_util_conf_from_entry(conf); - slapi_entry_free(conf); + if (conf) { + tconf = ipa_topo_util_conf_from_entry(conf); + slapi_entry_free(conf); + } return tconf; } |