[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] when saveconf fails in controller v1, we were returning a m...



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	control.c 
Log Message:
when saveconf fails in controller v1, we were returning a malformed
error string.


Index: control.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -p -d -r1.169 -r1.170
--- control.c	13 Feb 2006 09:02:35 -0000	1.169
+++ control.c	20 Feb 2006 01:24:26 -0000	1.170
@@ -1076,8 +1076,8 @@ handle_control_saveconf(connection_t *co
       send_control0_error(conn, ERR_INTERNAL,
                           "Unable to write configuration to disk.");
     else
-      connection_write_str_to_buf("551 Unable to write configuration to disk.",
-                                  conn);
+      connection_write_str_to_buf(
+        "551 Unable to write configuration to disk.\r\n", conn);
   } else {
     send_control_done(conn);
   }