artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c6e17d
)
send_ether no free; sent fix to darren
author
deraadt
<deraadt@openbsd.org>
Wed, 18 Sep 1996 02:16:27 +0000
(
02:16
+0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 18 Sep 1996 02:16:27 +0000
(
02:16
+0000)
usr.sbin/ipsend/common/ip.c
patch
|
blob
|
history
diff --git
a/usr.sbin/ipsend/common/ip.c
b/usr.sbin/ipsend/common/ip.c
index
364f01c
..
e05b4b9
100644
(file)
--- 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;
}