Feature #5592: Fix compilation issue in ProtocolShare