SECURITY: rework BDAT receive function handling