sync with OpenBSD -current

This commit is contained in:
purplerain 2024-09-09 15:32:34 +00:00
parent af487c914f
commit bf24177229
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
83 changed files with 1053 additions and 684 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: if_pppx.c,v 1.129 2024/07/30 13:41:15 yasuoka Exp $ */
/* $OpenBSD: if_pppx.c,v 1.130 2024/09/09 07:37:47 mvs Exp $ */
/*
* Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org>
@ -786,10 +786,8 @@ pppx_set_session_descr(struct pppx_dev *pxd,
if (pxi == NULL)
return (EINVAL);
NET_LOCK();
(void)memset(pxi->pxi_if.if_description, 0, IFDESCRSIZE);
strlcpy(pxi->pxi_if.if_description, req->pdr_descr, IFDESCRSIZE);
NET_UNLOCK();
pppx_if_rele(pxi);