Explorar o código

fix crash due to uninited var when parsing IMAPServer. Thanks to
CCMAIL: Antoine Reilles <tonio@NetBSD.org>
REF: <20070118182534.GA22288@arcelot.loria.fr>

Oswald Buddenhagen %!s(int64=18) %!d(string=hai) anos
pai
achega
625f592fb7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/drv_imap.c

+ 1 - 0
src/drv_imap.c

@@ -1689,6 +1689,7 @@ imap_parse_store( conffile_t *cfg, store_conf_t **storep, int *err )
 		*serverapp = server;
 		serverapp = &server->next;
 		store = 0;
+		*storep = 0;
 	} else if (!strcasecmp( "IMAPStore", cfg->cmd )) {
 		store = nfcalloc( sizeof(*store) );
 		store->gen.driver = &imap_driver;