http://www.navy.forces.gc.ca/centenn...sp?category=67
Have a sharp look at the stern flagpole and you'll see the white ensign flag.
Edit: I don't know, but the red merchant navy flag at the bow may indicate the ships herding role as an escort vessel at the very time of the photo taken.