summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-08-15 17:24:17 +0000
committerderaadt <deraadt@openbsd.org>1998-08-15 17:24:17 +0000
commit2de9a2c0760a11a8d6764f86bf66b66622d0dbc6 (patch)
treec03147288cfea3c7dde2d731b14ef413f11fef85 /usr.sbin/ypbind
parentrealloc misuse (diff)
downloadwireguard-openbsd-2de9a2c0760a11a8d6764f86bf66b66622d0dbc6.tar.xz
wireguard-openbsd-2de9a2c0760a11a8d6764f86bf66b66622d0dbc6.zip
oops
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 76b43b7d023..6cffb4cc7ae 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.35 1998/08/15 17:23:27 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.36 1998/08/15 17:24:17 deraadt Exp $ */
/*
* Copyright (c) 1997,1998 Theo de Raadt <deraadt@OpenBSD.org>
@@ -35,7 +35,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypbind.c,v 1.35 1998/08/15 17:23:27 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.36 1998/08/15 17:24:17 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -776,7 +776,7 @@ broadcast(ypdb, buf, outlen)
close(sock);
return (-1);
}
- inbuf = ninbuf;
+ ifc.ifc_buf = inbuf = ninbuf;
if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) {
(void) close(sock);
free(inbuf);