Close, but not close enough! Bathroom vent ducting shouldn’t discharge into the attic. Instead, it needs to be routed all the way to the exterior to help prevent elevated moisture conditions in the attic area that can lead to mold growth. I also recommend insulating vent ducting in the unconditioned (unheated) attic area to help prevent condensation within the ducting itself. This was discovered at a recent home inspection in Anacortes on Fidalgo Island.