git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8677f6e
)
pidl-wireshark: insure that we have an entire match for the variable name
author
Matthieu Patou
<mat@matws.net>
Thu, 3 Oct 2013 16:45:19 +0000
(09:45 -0700)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 4 Nov 2013 11:19:32 +0000
(12:19 +0100)
Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/Parse/Pidl/Wireshark/NDR.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index 8740f154ebae759dfedd5111a49eb2aab59922a8..efc41402ab264609d65384943877e94953d07e71 100644
(file)
--- a/
pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/
pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@
-667,7
+667,7
@@
sub Struct($$$$)
my $switch_info = undef;
my $v = $_->{NAME};
- if (scalar(grep {/
$v
/} keys(%$varswitchs)) == 1) {
+ if (scalar(grep {/
^$v$
/} keys(%$varswitchs)) == 1) {
# This element is one of the switch attribute
my $switch_dt = getType($_->{TYPE});
my $switch_type;