It seems the problem is one of those instances of memcmp on padded structures I have been warning about...
It seems the problem is one of those instances of memcmp on padded structures I have been warning about...