[dovecot-cvs] dovecot/src/lib-dict dict-client.c,1.8.2.3,1.8.2.4

cras at dovecot.org cras at dovecot.org
Mon Jul 31 02:03:59 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-dict
In directory talvi:/tmp/cvs-serv961/lib-dict

Modified Files:
      Tag: branch_1_0
	dict-client.c 
Log Message:
dict proxy: Dictionary iteration was broken.



Index: dict-client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-dict/dict-client.c,v
retrieving revision 1.8.2.3
retrieving revision 1.8.2.4
diff -u -d -r1.8.2.3 -r1.8.2.4
--- dict-client.c	16 Jun 2006 11:42:56 -0000	1.8.2.3
+++ dict-client.c	30 Jul 2006 23:03:57 -0000	1.8.2.4
@@ -188,7 +188,10 @@
 	char *line;
 	int ret;
 
-	line = NULL;
+	line = i_stream_next_line(dict->input);
+	if (line != NULL)
+		return line;
+
 	while ((ret = i_stream_read(dict->input)) > 0) {
 		line = i_stream_next_line(dict->input);
 		if (line != NULL)



More information about the dovecot-cvs mailing list