From: Alan T. DeKok Date: Thu, 8 Dec 2016 14:03:59 +0000 (-0500) Subject: don't allow re-open of an open channel X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8221e92d30507d899358ebcbfa9bbb2bd4f3890;p=thirdparty%2Ffreeradius-server.git don't allow re-open of an open channel --- diff --git a/src/util/channel.c b/src/util/channel.c index b458a03ab3e..2cd81bcea74 100644 --- a/src/util/channel.c +++ b/src/util/channel.c @@ -734,6 +734,8 @@ int fr_channel_worker_receive_open(UNUSED TALLOC_CTX *ctx, UNUSED fr_channel_t * talloc_get_type_abort(ch, fr_channel_t); #endif + if (ch->end[FROM_WORKER].control) return -1; + ch->end[FROM_WORKER].control = fr_control_create(ctx, ch->end[FROM_WORKER].kq, ch->end[FROM_WORKER].aq_control);