send_ether no free; sent fix to darren
authorderaadt <deraadt@openbsd.org>
Wed, 18 Sep 1996 02:16:27 +0000 (02:16 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 18 Sep 1996 02:16:27 +0000 (02:16 +0000)
usr.sbin/ipsend/common/ip.c

index 364f01c..e05b4b9 100644 (file)
@@ -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;
 }