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)
commitf002f147d8a8a0b49389e30e611ff8b33dd077e1
treee6842b5b111b98a221741f114c405b3be42b9b13
parentbdff9728cc1c8b5fe5a29040e092a8e48603725b
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
source/pidl/lib/Parse/Pidl/NDR.pm