Browse Source

[2155] remove surrounding block

Yoshitaka Aharen 12 years ago
parent
commit
566ab87733
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/bin/auth/auth_srv.cc

+ 4 - 6
src/bin/auth/auth_srv.cc

@@ -583,12 +583,10 @@ AuthSrv::processMessage(const IOMessage& io_message, Message& message,
     try {
         // statistics: check EDNS
         //     note: This can only be reliable after TSIG check succeeds.
-        {
-            ConstEDNSPtr edns = message.getEDNS();
-            if (edns != NULL) {
-                stats_attrs.setQueryEDNS(true, edns->getVersion() == 0);
-                stats_attrs.setQueryDO(edns->getDNSSECAwareness());
-            }
+        ConstEDNSPtr edns = message.getEDNS();
+        if (edns != NULL) {
+            stats_attrs.setQueryEDNS(true, edns->getVersion() == 0);
+            stats_attrs.setQueryDO(edns->getDNSSECAwareness());
         }
 
         // statistics: check OpCode