STATUS: the patch has been applied to proftpd on 2002-02-28. this patch fixes a segfault that occures dirtree.c:build_dyn_conf() as soon as an update attempt is made to an empty config subset. it is against CVS as of 2001/12/27 12:32:56 GMT... the segfault happens at _mergedown(*set,TRUE); because set == NULL! an attempt to explain: suppose a ftpaccess is read, but nothing is added to the config_rec which leaves config != NULL and config->subset == NULL. the next time build_dyn_conf() is entered for the same directory (d != NULL and d->name equals fullpath) we still have a .ftpaccess (isfile != -1). so we fall through to } else if(d->subset && d->subset->xas_list && strcmp(d->name,fullpath) == 0 && this block is our last chance to have "set" set to sane value but it is not entered because d->subset == NULL. this patch moves the d->subset != NULL check one block down to where it's actually needed, after "set" is valid. regards, -lukas