Fix bug leading to eternal looping with disabled IP protocol.