diff --git a/src/or/config.c b/src/or/config.c
index afcea1f4cdf877aa011c91b8201179cdd2e072fb..684875d83a8c6c8a4c16997e6c9eff9cf128e4ee 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4980,7 +4980,7 @@ parse_client_port_config(smartlist_t *out,
   /* FooListenAddress is deprecated; let's make it work like it used to work,
    * though. */
   if (listenaddrs) {
-    int mainport = defaultport;
+   int mainport = defaultport;
 
    if (ports && ports->next) {
       log_warn(LD_CONFIG, "%sListenAddress can't be used when there are "