/* Check if there is a destination for the connection, if so bind the connection to the destination.  */
struct ip_vs_dest* ip_vs_try_bind_dest(struct ip_vs_conn *cp)
/* Check if there is a destination for the connection, if so bind the connection to the destination.  */
struct ip_vs_dest* ip_vs_try_bind_dest(struct ip_vs_conn *cp)
{
	struct ip_vs_dest *dest;
	if ((cp) && (!cp->dest)) {
		dest = ip_vs_find_dest(cp->af, &cp->daddr, cp->dport,
				       &cp->vaddr, cp->vport,
				       cp->protocol);
		ip_vs_bind_dest(cp, dest);
		return dest;
	} else
		return NULL;
}