Skip to content

Commit 744fb08

Browse files
committed
Fix CID 111488 (#512)
1 parent 2babb94 commit 744fb08

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tempesta_fw/classifier/frang.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,13 +630,17 @@ st: __attribute__((unused)) \
630630

631631
#define __FRANG_FSM_JUMP(to) goto to;
632632
#define __FRANG_FSM_MOVE(to) \
633+
do { \
633634
if (r) \
634635
__FRANG_FSM_EXIT(); \
635-
goto to;
636+
goto to; \
637+
} while (0)
636638

637639
#define __FRANG_FSM_JUMP_EXIT(to) \
640+
do { \
638641
__fsm_const_state = to; /* optimized out to constant */ \
639-
__FRANG_FSM_EXIT()
642+
__FRANG_FSM_EXIT(); \
643+
} while (0)
640644

641645
static int
642646
frang_http_req_process(FrangAcc *ra, TfwConnection *conn, struct sk_buff *skb,

0 commit comments

Comments
 (0)