Preparation of halogenated hydrocarbons by addition of hydrogen halides to unsaturated halogenated hydrocarbons