r9682: Jelmer, I think this fixes another case where the parser generator was
[samba.git] / source / pidl / lib / Parse / Pidl / Ethereal / NDR.pm
index 92199e13f108e40fa99027a9231d1db20588ace2..60b237110880ad1bfdf701a05152a2f6eb6d0231 100644 (file)
@@ -326,7 +326,7 @@ sub Element($$$)
        my $add = "";
 
        foreach (@{$e->{LEVELS}}) {
-               next if ($_->{TYPE} eq "SWITCH");
+               last if ($_->{TYPE} eq "SWITCH");
                pidl_def "static int $dissectorname$add(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);";
                pidl_code "static int";
                pidl_code "$dissectorname$add(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)";