]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
indentation fix
authorAnoop Saldanha <poonaatsoc@gmail.com>
Tue, 15 May 2012 12:57:37 +0000 (18:27 +0530)
committerVictor Julien <victor@inliniac.net>
Wed, 16 May 2012 08:38:37 +0000 (10:38 +0200)
src/detect-engine-threshold.c

index 6d136083c9de04fc68dda3db7fbebce7c828df14..73d808b0716d54a677042359e5cef00a4cf352e0 100644 (file)
@@ -398,24 +398,24 @@ int ThresholdHandlePacketHost(Host *h, Packet *p, DetectThresholdData *td, uint3
                         /* Then we must enable the new action by setting a
                          * timeout */
                         lookup_tsh->tv_timeout = p->ts.tv_sec;
-                    /* Take the action to perform */
-                    switch (td->new_action) {
-                        case TH_ACTION_ALERT:
-                            ALERT_PACKET(p);
-                            break;
-                        case TH_ACTION_DROP:
-                            DROP_PACKET(p);
-                            break;
-                        case TH_ACTION_REJECT:
-                            REJECT_PACKET(p);
-                            break;
-                        case TH_ACTION_PASS:
-                            PASS_PACKET(p);
-                            break;
-                        default:
-                            /* Weird, leave the default action */
-                            break;
-                    }
+                        /* Take the action to perform */
+                        switch (td->new_action) {
+                            case TH_ACTION_ALERT:
+                                ALERT_PACKET(p);
+                                break;
+                            case TH_ACTION_DROP:
+                                DROP_PACKET(p);
+                                break;
+                            case TH_ACTION_REJECT:
+                                REJECT_PACKET(p);
+                                break;
+                            case TH_ACTION_PASS:
+                                PASS_PACKET(p);
+                                break;
+                            default:
+                                /* Weird, leave the default action */
+                                break;
+                        }
                         ret = 1;
                     }
                 } else {