-/* $OpenBSD: tcpdrop.c,v 1.14 2014/06/29 00:58:45 deraadt Exp $ */
+/* $OpenBSD: tcpdrop.c,v 1.15 2015/01/01 03:27:56 lteo Exp $ */
/*
* Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
errx(1, "%s port %s: %s", addr1, port1,
gai_strerror(gaierr));
- if ((gaierr = getaddrinfo(faddr2, port2, &hints, &faddr)) != 0) {
- freeaddrinfo(laddr);
+ if ((gaierr = getaddrinfo(faddr2, port2, &hints, &faddr)) != 0)
errx(1, "%s port %s: %s", addr2, port2,
gai_strerror(gaierr));
- }
rval = 1;
for (ail = laddr; ail; ail = ail->ai_next) {