From: Alan T. DeKok Date: Thu, 17 Sep 2009 10:03:36 +0000 (+0200) Subject: Fix arguments to client_find X-Git-Tag: release_3_0_0_beta0~1738 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43b1af17eba18f0d19d41ca7b850b55d63a2d420;p=thirdparty%2Ffreeradius-server.git Fix arguments to client_find --- diff --git a/src/main/client.c b/src/main/client.c index 38ddc1deb62..7b1c7c77ec5 100644 --- a/src/main/client.c +++ b/src/main/client.c @@ -501,7 +501,11 @@ RADCLIENT *client_find(const RADCLIENT_LIST *clients, */ RADCLIENT *client_find_old(const fr_ipaddr_t *ipaddr) { - return client_find(root_clients, ipaddr, IPPROTO_UDP); + return client_find(root_clients, ipaddr +#ifdef WITH_TCP + , IPPROTO_UDP +#endif + ); } static struct in_addr cl_ip4addr;