Hello,

This patches fixes two tickets as it is difficult to split the patch in two parts for each ticket.

Patch is
https://fedorahosted.org/389/attachment/ticket/48746/0002-Ticket-48746-Crash-when-indexing-an-attribute-with-a.patch

One ticket is  a crash:
https://fedorahosted.org/389/ticket/48746

test case: https://fedorahosted.org/389/attachment/ticket/48746/ticket48746_test.py


One is for an invalid indexing of a matching rule

https://fedorahosted.org/389/ticket/48745

test case: https://fedorahosted.org/389/attachment/ticket/48745/ticket48745_test.py

thanks
thierry