diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 0052e5a1e..9d9c53d16 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.78 - =================================== + Fix config node lookup inside empty sections to not return the section itself. Extend support for status info of thin pool target. Fix segfault for truncated string token in config file after the first '"'. Close open dmeventd FIFO file descriptors on exec (FD_CLOEXEC). diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index cc726aef0..bd29d32a1 100644 --- a/libdm/libdm-config.c +++ b/libdm/libdm-config.c @@ -752,12 +752,12 @@ static const struct dm_config_node *_find_config_node(const void *start, if (cn_found && *e) cn = cn_found->child; else - break; /* don't move into the last node */ + return cn_found; path = e; } - return cn_found; + return NULL; } static const struct dm_config_node *_find_first_config_node(const void *start, const char *path)