changeset 4521:9202ffe3d5c5 HEAD

Debug: Don't log empty error when writing "master out" debug lines.
author Timo Sirainen <tss@iki.fi>
date Mon, 31 Jul 2006 02:05:30 +0300
parents da2d2146a419
children 706c0cb1c821
files src/auth/auth-master-connection.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-master-connection.c	Mon Jul 31 02:04:18 2006 +0300
+++ b/src/auth/auth-master-connection.c	Mon Jul 31 02:05:30 2006 +0300
@@ -86,16 +86,16 @@
 
 	str = t_str_new(128);
 	if (reply == NULL)
-		str_printfa(str, "NOTFOUND\t%u\n", auth_request->id);
+		str_printfa(str, "NOTFOUND\t%u", auth_request->id);
 	else {
 		str_printfa(str, "USER\t%u\t", auth_request->id);
 		str_append(str, auth_stream_reply_export(reply));
-		str_append_c(str, '\n');
 	}
 
 	if (conn->listener->auth->verbose_debug)
 		i_info("master out: %s", str_c(str));
 
+	str_append_c(str, '\n');
 	(void)o_stream_send(conn->output, str_data(str), str_len(str));
 	auth_request_unref(&auth_request);
 }