[Dovecot] dovecot -n segfault

Luca Corti
2007-06-26T20:08:50Z

On Tue, 2007-06-26 at 22:46 +0300, Uldis Pakuls wrote:
> > Luca
> Are you applied "managesieve" patch? There is bug in
> "master_settings_dump" causing segfault with "dovecot
-n"
> look for old  posts; few month ago I posted patch here.

Forgot about patching managesieve into dovecot...


> @@ -1536,8 +1584,8 @@
>  void master_settings_dump(struct server_settings *set, bool nondefaults)
>  {
> -       const void *sets[4];
> -       const char *set_names[4];
> +       const void *sets[5];
> +       const char *set_names[5];
>         unsigned int count;
>         sets[0] = &default_settings;

This fixes the segfault... great, thanks a lot. I think this should go
into the managesieve patchset. CCing its author.

ciao

Luca