Don't go to next sibling on empty case. Fixes #1274
[freeradius.git] / src / tests / keywords / case-empty
1 # PRE: switch
2 #
3 update reply {
4         Filter-Id := "filter"
5 }
6
7 switch &reply:Filter-Id {
8         # deliberately empty
9         case "filter" {
10         }
11
12         case "fail" {
13                 update reply {
14                         Filter-Id := "fail"
15                 }
16         }
17
18         case {
19                 update reply {
20                         Filter-Id := "default"
21                 }
22         }
23 }