diff src/pop3/main.c @ 14691:3945a3646c67

Changed i_close_fd() API to set the fd to -1 after closing.
author Timo Sirainen <tss@iki.fi>
date Thu, 28 Jun 2012 00:27:13 +0300
parents 7c058aa05b0a
children 7efef678bca8
line wrap: on
line diff
--- a/src/pop3/main.c	Wed Jun 27 12:03:51 2012 +0300
+++ b/src/pop3/main.c	Thu Jun 28 00:27:13 2012 +0300
@@ -171,8 +171,10 @@
 				 client->auth_req.data_size);
 	if (client_create_from_input(&input, client->fd, client->fd,
 				     &input_buf, &error) < 0) {
+		int fd = client->fd;
+
 		i_error("%s", error);
-		i_close_fd(client->fd);
+		i_close_fd(&fd);
 		master_service_client_connection_destroyed(master_service);
 	}
 }