Fixed bug where we attempted to match a linked port to the current fd, but fail because the fd structure is more than the linked port.