]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix arguments to client_find
authorAlan T. DeKok <aland@freeradius.org>
Thu, 17 Sep 2009 10:03:36 +0000 (12:03 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 17 Sep 2009 10:03:36 +0000 (12:03 +0200)
src/main/client.c

index 38ddc1deb6244f3005be3f9c77c418bdb9b4bd14..7b1c7c77ec5801655426131863f1b7b605452550 100644 (file)
@@ -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;