X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvqp.c;h=bb1d21f021bad1d069ccc53ba56d911b4af79210;hb=ece2d10953bc44313e2384358a809ee54eb49c5e;hp=8dec957d465d286e5714fb694455fb87af323df4;hpb=e541966c4ad2c79bed09a868acca0d46ad5be6d8;p=freeradius.git diff --git a/src/lib/vqp.c b/src/lib/vqp.c index 8dec957..bb1d21f 100644 --- a/src/lib/vqp.c +++ b/src/lib/vqp.c @@ -102,7 +102,7 @@ static int vqp_sendto(int sockfd, void *data, size_t data_len, int flags, * And if they don't specify a source IP address, don't * use udpfromto. */ - if ((dst_ipaddr->af == AF_INET) || + if ((dst_ipaddr->af == AF_INET) && (src_ipaddr->af != AF_UNSPEC)) { return sendfromto(sockfd, data, data_len, flags, (struct sockaddr *)&src, sizeof_src,