Explorar o código

fix potential double free

the store may be discarded before we reach maildir_select() again, which
will leave us with a dangling pointer.
Oswald Buddenhagen %!s(int64=14) %!d(string=hai) anos
pai
achega
04ca97920d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/drv_maildir.c

+ 1 - 0
src/drv_maildir.c

@@ -763,6 +763,7 @@ maildir_select( store_t *gctx, int create,
 
 	maildir_cleanup( gctx );
 	gctx->msgs = 0;
+	ctx->excs = 0;
 	ctx->uvfd = -1;
 #ifdef USE_DB
 	ctx->db = 0;