]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed a variable declaration that wasn't at the start
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 11 Jun 2007 21:06:11 +0000 (21:06 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 11 Jun 2007 21:06:11 +0000 (21:06 +0000)
of a block.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2026 e7ae566f-a301-0410-adde-c780ea21d3b5

multi.c

diff --git a/multi.c b/multi.c
index ee74a4679f363de3aea9205b56a35897d6cdf345..fa924f1bdf853aa91967a6ac57878f37379a9f26 100644 (file)
--- a/multi.c
+++ b/multi.c
@@ -408,8 +408,10 @@ multi_client_disconnect_setenv (struct multi_context *m,
   setenv_counter (mi->context.c2.es, "bytes_sent", mi->context.c2.link_write_bytes);
 
   /* setenv connection duration */
-  const unsigned int duration = (unsigned int) now - mi->created;
-  setenv_unsigned (mi->context.c2.es, "time_duration", duration);
+  {
+    const unsigned int duration = (unsigned int) now - mi->created;
+    setenv_unsigned (mi->context.c2.es, "time_duration", duration);
+  }
 }
 
 static void