inside ypconnect(), it is best if we prevent "../" problems. so reject
domainnames containing '/.
discussed with jca
-/* $OpenBSD: uipc_syscalls.c,v 1.198 2022/07/18 03:02:05 deraadt Exp $ */
+/* $OpenBSD: uipc_syscalls.c,v 1.199 2022/07/18 04:42:37 deraadt Exp $ */
/* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */
/*
} __packed data;
struct sockaddr_in ypsin;
- if (!domainname[0])
+ if (!domainname[0] || strchr(domainname, '/'))
return EAFNOSUPPORT;
switch (SCARG(uap, type)) {