generic matching routine segfault (rev. 12_b4)

Signed-off-by: nixnodes <code@eth.si>