Errorcode fix.

A wrong membership should return an EINVAL.

This will fix the last misplaced EFAULT error setting.