X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=udp.c;h=7614f2e4e8137df240b52740fd072e2a9b5800c7;hb=e506e1b12f1b206aa38e30e5eac817f8b7c6125e;hp=2724a1d62f22173d4876644ddc0c79d5b95d32a4;hpb=dfadeec9cd47ce9f71f4bba7bc80efda4f8fd94a;p=libradsec.git diff --git a/udp.c b/udp.c index 2724a1d..7614f2e 100644 --- a/udp.c +++ b/udp.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "radsecproxy.h" #include "hostport.h" @@ -317,6 +318,7 @@ void addclientudp(struct client *client) { } void addserverextraudp(struct clsrvconf *conf) { + assert(list_first(conf->hostports) != NULL); switch (((struct hostportres *)list_first(conf->hostports)->data)->addrinfo->ai_family) { case AF_INET: if (client4_sock < 0) {