fix crash due to uninited var when parsing IMAPServer. Thanks to
CCMAIL: Antoine Reilles <tonio@NetBSD.org> REF: <20070118182534.GA22288@arcelot.loria.fr>
This commit is contained in:
parent
023d3ee577
commit
625f592fb7
|
@ -1689,6 +1689,7 @@ imap_parse_store( conffile_t *cfg, store_conf_t **storep, int *err )
|
||||||
*serverapp = server;
|
*serverapp = server;
|
||||||
serverapp = &server->next;
|
serverapp = &server->next;
|
||||||
store = 0;
|
store = 0;
|
||||||
|
*storep = 0;
|
||||||
} else if (!strcasecmp( "IMAPStore", cfg->cmd )) {
|
} else if (!strcasecmp( "IMAPStore", cfg->cmd )) {
|
||||||
store = nfcalloc( sizeof(*store) );
|
store = nfcalloc( sizeof(*store) );
|
||||||
store->gen.driver = &imap_driver;
|
store->gen.driver = &imap_driver;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user