[dovecot-cvs] dovecot/src/plugins/zlib zlib-plugin.c,1.2,1.3

cras at dovecot.org cras at dovecot.org
Sat Jan 14 20:48:17 EET 2006


Update of /var/lib/cvs/dovecot/src/plugins/zlib
In directory talvi:/tmp/cvs-serv16037/plugins/zlib

Modified Files:
	zlib-plugin.c 
Log Message:
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.



Index: zlib-plugin.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/zlib/zlib-plugin.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- zlib-plugin.c	13 Jan 2006 20:26:48 -0000	1.2
+++ zlib-plugin.c	14 Jan 2006 18:48:15 -0000	1.3
@@ -57,7 +57,7 @@
 	box = qstorage->super.mailbox_open(storage, name, input, flags);
 
 	if (zlib_input != NULL)
-		i_stream_unref(zlib_input);
+		i_stream_unref(&zlib_input);
 
 	return box;
 }



More information about the dovecot-cvs mailing list