From: deraadt Date: Tue, 23 Feb 2021 14:27:16 +0000 (+0000) Subject: previous commit mismanaged the control fd X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3e9f42c2c1c62764cf417142ea5a5a81ff092907;p=openbsd previous commit mismanaged the control fd ok claudio --- 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);