diff src/pop3-login/pop3-proxy.c @ 3879:928229f8b3e6 HEAD

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.
author Timo Sirainen <tss@iki.fi>
date Sat, 14 Jan 2006 20:47:20 +0200
parents 620a00db2c7c
children 507088c0d511
line wrap: on
line diff
--- a/src/pop3-login/pop3-proxy.c	Sat Jan 14 19:23:22 2006 +0200
+++ b/src/pop3-login/pop3-proxy.c	Sat Jan 14 20:47:20 2006 +0200
@@ -153,10 +153,7 @@
 	client->proxy_password = i_strdup(password);
 
 	/* disable input until authentication is finished */
-	if (client->io != NULL) {
-		io_remove(client->io);
-		client->io = NULL;
-	}
-
+	if (client->io != NULL)
+		io_remove(&client->io);
 	return 0;
 }