From: deraadt Date: Wed, 18 Sep 1996 02:16:27 +0000 (+0000) Subject: send_ether no free; sent fix to darren X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1e520c57a1d92db9bbe9ca1c7cc8fb919db6356f;p=openbsd send_ether no free; sent fix to darren --- diff --git a/usr.sbin/ipsend/common/ip.c b/usr.sbin/ipsend/common/ip.c index 364f01c4376..e05b4b9a373 100644 --- a/usr.sbin/ipsend/common/ip.c +++ b/usr.sbin/ipsend/common/ip.c @@ -72,13 +72,11 @@ struct in_addr gwip; else if (arp((char *)&gwip, &eh->ether_dhost) == -1) { perror("arp"); - free(buf); return -2; } eh->ether_type = ETHERTYPE_IP; last_gw.s_addr = gwip.s_addr; err = sendip(nfd, s, sizeof(*eh) + len); - free(buf); return err; }