array: Adjust negative index before calling remove_head|tail()
authorTobias Brunner <tobias@strongswan.org>
Fri, 29 Aug 2014 08:18:07 +0000 (10:18 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 11 Sep 2014 15:52:37 +0000 (17:52 +0200)
commitea50394bf1853627920d7f9028b3749172467424
tree7e42320dff615bc5886ba56835fbdd3d0741a6ed
parentc641974de001247e100638dbe816bd1cd90f3f30
array: Adjust negative index before calling remove_head|tail()

For ARRAY_TAIL we most often want to call remove_tail() not remove_head().
src/libstrongswan/collections/array.c