ypbinding should not be intrude to application namespace.
authorderaadt <deraadt@openbsd.org>
Mon, 18 Jul 2022 02:32:11 +0000 (02:32 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 18 Jul 2022 02:32:11 +0000 (02:32 +0000)
spotted by guenther

lib/libc/yp/yp_bind.c

index 411726c..7889e84 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: yp_bind.c,v 1.29 2022/07/17 03:08:58 deraadt Exp $ */
+/*     $OpenBSD: yp_bind.c,v 1.30 2022/07/18 02:32:11 deraadt Exp $ */
 /*
  * Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
  * All rights reserved.
@@ -43,7 +43,7 @@
 #include <rpcsvc/ypclnt.h>
 #include "ypinternal.h"
 
-struct dom_binding *ypbinding;
+static struct dom_binding *ypbinding;
 char _yp_domain[HOST_NAME_MAX+1];
 int _yplib_timeout = 10;