Fix assertion to only check for TCP sockets
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Oct 2014 19:00:12 +0000 (15:00 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Oct 2014 19:00:30 +0000 (15:00 -0400)
src/main/process.c

index 16283d2..b4cf791 100644 (file)
@@ -4359,7 +4359,7 @@ static int event_new_fd(rad_listen_t *this)
                 */
                case RAD_LISTEN_PROXY:
 #ifdef WITH_TCP
-                       rad_assert(sock->home != NULL);
+                       rad_assert((sock->proto == IPPROTO_UDP) || (sock->home != NULL));
 
                        /*
                         *      Add timers to outgoing child sockets, if necessary.