ripple/rippled — pull request #362 by nbougalis (2014-05-13 02:56:48+00:00)
Title: Fix lexicographical compare during tfRequireAuth processing

RippleState entries utilize lexicographical order, with one item being designated "low" while the other is designated "high". We use this distinction when checking flags (e.g. flags which indicate whether someone is authorized to hold an asset).

When checking trust lines against a currency whose issuer had specified `tfRequireAuth`, the comparison logic was reversed; as a result, users might find themselves unable to hold assets that they are authorized to hold.

Fix the check.