For a good explanation of the (nine) Freedoms of the Air, please refer to
this article on Wikipedia.
About the Fifth Freedom, it states:
"
Fifth freedom
It is also called a CONNECTING FLIGHT. The right to carry passengers from one's own country to a second country, and from that country to a third country.
Two sub-categories exist.
Beyond Fifth Freedom allows the right to carry passengers from the second country to the third country.
Intermediate Fifth Freedom allows the right to carry passengers from the third to the second country."