]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't allow re-open of an open channel
authorAlan T. DeKok <aland@freeradius.org>
Thu, 8 Dec 2016 14:03:59 +0000 (09:03 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 8 Dec 2016 14:03:59 +0000 (09:03 -0500)
src/util/channel.c

index b458a03ab3e570f634a34f973e26418233302f5f..2cd81bcea74e73553fc013e3d74801ba1445023a 100644 (file)
@@ -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);