]> arthur.barton.de Git - netdata.git/commitdiff
IP/Port config regression fixed; fixes 756
authorCosta Tsaousis <costa@tsaousis.gr>
Thu, 4 Aug 2016 08:55:02 +0000 (11:55 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Thu, 4 Aug 2016 08:55:02 +0000 (11:55 +0300)
src/appconfig.c

index a7b68846d50baa31b7dea772acfad02cb31f9e52..748c6eff179a10ec1bb85d6afbb266c9073c43d1 100644 (file)
@@ -230,6 +230,8 @@ int config_rename(const char *section, const char *old, const char *new) {
        cv->name = strdup(new);
        if(!cv->name) fatal("Cannot allocate memory for config_rename()");
 
+       cv->hash = simple_hash(cv->name);
+
        config_value_index_add(co, cv);
        config_section_unlock(co);