]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compile errors
authorNick Mathewson <nickm@torproject.org>
Sun, 7 Nov 2004 23:11:29 +0000 (23:11 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 7 Nov 2004 23:11:29 +0000 (23:11 +0000)
svn:r2708

src/or/control.c

index 60bf8c491fd02d051e72b42037baea657c9d8d21..1502557a144e23475de90ea38efb7665af984f91 100644 (file)
@@ -212,8 +212,8 @@ handle_control_setconf(connection_t *conn, uint16_t len, char *body)
 
   if ((r=config_trial_assign(&options, lines, 1)) < 0) {
     log_fn(LOG_WARN,"Controller gave us config lines that didn't validate.");
-    if (e==-1) {
-      send_control_error(conn, ERR_UNRECOGNNIZED_CONFIG_KEY,
+    if (r==-1) {
+      send_control_error(conn, ERR_UNRECOGNIZED_CONFIG_KEY,
                          "Unrecognized option");
     } else {
       send_control_error(conn, ERR_INVALID_CONFIG_VALUE,"Invalid option value");