[dovecot-cvs] dovecot/src/lib-auth auth-server-connection.c, 1.16, 1.16.2.1

tss at dovecot.org tss at dovecot.org
Tue Nov 7 14:55:32 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-auth
In directory talvi:/tmp/cvs-serv18644

Modified Files:
      Tag: branch_1_0
	auth-server-connection.c 
Log Message:
Reduce memory usage in case we read a lot of auth replies at once.



Index: auth-server-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-auth/auth-server-connection.c,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -u -d -r1.16 -r1.16.2.1
--- auth-server-connection.c	14 Jan 2006 18:47:23 -0000	1.16
+++ auth-server-connection.c	7 Nov 2006 14:55:30 -0000	1.16.2.1
@@ -164,6 +164,7 @@
 
 	conn->refcount++;
 	while ((line = i_stream_next_line(conn->input)) != NULL) {
+		t_push();
 		if (strncmp(line, "OK\t", 3) == 0)
 			ret = auth_client_input_ok(conn, line + 3);
 		else if (strncmp(line, "CONT\t", 5) == 0)
@@ -182,6 +183,7 @@
 			/* ignore unknown command */
 			ret = TRUE;
 		}
+		t_pop();
 
 		if (!ret) {
 			auth_server_connection_destroy(&conn, FALSE);



More information about the dovecot-cvs mailing list