summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypbind/ypbind.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 9d48b594e11..b8c630c1301 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.32 1998/02/07 18:51:48 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.33 1998/03/20 03:16:15 angelos Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt <deraadt@theos.com>
@@ -34,7 +34,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypbind.c,v 1.32 1998/02/07 18:51:48 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.33 1998/03/20 03:16:15 angelos Exp $";
#endif
#include <sys/param.h>
@@ -805,11 +805,13 @@ broadcast(ypdb, buf, outlen)
ifreq.ifr_flags &= (IFF_LOOPBACK | IFF_BROADCAST);
if (ifreq.ifr_flags == IFF_BROADCAST) {
+ ifreq.ifr_addr = ifr->ifr_addr;
if (ioctl(sock, SIOCGIFBRDADDR, &ifreq) < 0) {
perror("ioctl(SIOCGIFBRDADDR)");
continue;
}
} else if (ifreq.ifr_flags == IFF_LOOPBACK) {
+ ifreq.ifr_addr = ifr->ifr_addr;
if (ioctl(sock, SIOCGIFADDR, &ifreq) < 0) {
perror("ioctl(SIOCGIFADDR)");
continue;