It's be more appropriate to replace this switch block with an assert, as this function was only registered for these two message types.  If it's being called for any other unsolicited messages, it's a bug.