pidl/NDR: correctly check for valid properties
authorStefan Metzmacher <metze@samba.org>
Wed, 20 Aug 2008 08:18:42 +0000 (10:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Aug 2008 13:22:03 +0000 (15:22 +0200)
commit9941c1e7fc7385ad72e3786ca266924d392326e3
tree00ec25afc1f85dfbd69e5b77276732cb64ff5716
parent8e6161d1b237a9967cbca01fcc4e31b6a84109d2
pidl/NDR: correctly check for valid properties

grep($str, @array) returns the number of elements in @array!
We need grep(/^$str$/, @array) to the only the amount of matches.

Also fix unitialized vars for the error case.

metze
(This used to be commit f002f147d8a8a0b49389e30e611ff8b33dd077e1)
source4/pidl/lib/Parse/Pidl/NDR.pm