summaryrefslogtreecommitdiff
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1994-10-02 17:48:58 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1994-10-02 17:48:58 +0000
commit623ae52e4e1ce4afabbf2ba7b17d8da7b375c97b (patch)
treec117ab448d9316a116c92751ddc54084d53fb88a /sys/netinet/if_ether.c
parent51b713ac2b44e4205d3f986864ae94088190ad61 (diff)
Notes
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 717814ddaa7d..56b1b7cd3880 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ether.c 8.1 (Berkeley) 6/10/93
- * $Id: if_ether.c,v 1.3 1994/08/18 22:35:26 wollman Exp $
+ * $Id: if_ether.c,v 1.4 1994/10/01 21:50:33 wollman Exp $
*/
/*
@@ -310,7 +310,8 @@ arpresolve(ac, rt, m, dst, desten)
if (rt)
la = (struct llinfo_arp *)rt->rt_llinfo;
else {
- if (la = arplookup(SIN(dst)->sin_addr.s_addr, 1, 0))
+ la = arplookup(SIN(dst)->sin_addr.s_addr, 1, 0);
+ if (la)
rt = la->la_rt;
}
if (la == 0 || rt == 0) {