Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: relayd: stop using imsg->fd use imsg_get_fd instead
To:
tech@openbsd.org
Date:
Thu, 31 Oct 2024 14:16:51 +0100

Download raw body.

Thread
On Thu, Oct 31, 2024 at 02:15:17PM +0100, Claudio Jeker wrote:
> Do it like the rest of the function and use imsg_get_fd() instead of
> imsg->fd.

ok

> 
> -- 
> :wq Claudio
> 
> Index: config.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/relayd/config.c,v
> diff -u -p -r1.46 config.c
> --- config.c	28 Oct 2024 19:56:18 -0000	1.46
> +++ config.c	31 Oct 2024 13:12:35 -0000
> @@ -1181,7 +1181,7 @@ config_getrelayfd(struct relayd *env, st
>  		rlay->rl_tls_cacert_fd = imsg_get_fd(imsg);
>  		break;
>  	case RELAY_FD_CLIENTCACERT:
> -		rlay->rl_tls_client_ca_fd = imsg->fd;
> +		rlay->rl_tls_client_ca_fd = imsg_get_fd(imsg);
>  		break;
>  	}
>  
>