Commit 872de3db authored by Linus Nordberg's avatar Linus Nordberg
Browse files

Assert that the conf has at least one host in addserverextraudp().

Dynamic servers has clearly never been run on UDP servers.
We should probably do something less evil than crashing here.
parent 8b7224cf
......@@ -24,6 +24,7 @@
#include <arpa/inet.h>
#include <regex.h>
#include <pthread.h>
#include <assert.h>
#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) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment