From 3e9f42c2c1c62764cf417142ea5a5a81ff092907 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 23 Feb 2021 14:27:16 +0000 Subject: [PATCH] previous commit mismanaged the control fd ok claudio --- usr.sbin/rad/control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rad/control.c b/usr.sbin/rad/control.c index d8e0ba2f411..d252596fae3 100644 --- a/usr.sbin/rad/control.c +++ b/usr.sbin/rad/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.6 2021/01/19 16:54:00 florian Exp $ */ +/* $OpenBSD: control.c,v 1.7 2021/02/23 14:27:16 deraadt Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -106,7 +106,7 @@ control_listen(int fd) if (control_state.fd != -1) fatalx("%s: received unexpected controlsock", __func__); - control_state.fd = -1; + control_state.fd = fd; if (listen(control_state.fd, CONTROL_BACKLOG) == -1) { log_warn("%s: listen", __func__); return (-1); -- 2.20.1