summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-10 20:50:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-10 20:50:13 +0000
commitd5876e314621444e145c8e18268e0f6e1eecc9f8 (patch)
treed2f59f27e47e310a96222f775caf7107dbebac17 /libexec
parent38ee3af57d708fcacbd89b551d3a93ce4aba8ad7 (diff)
incorrect freeaddrinfo() call on failure; mike.pechkin, otto ok
Diffstat (limited to 'libexec')
-rw-r--r--libexec/login_tis/login_tis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/login_tis/login_tis.c b/libexec/login_tis/login_tis.c
index 15c2cd3bd9f..e85fa111ed8 100644
--- a/libexec/login_tis/login_tis.c
+++ b/libexec/login_tis/login_tis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_tis.c,v 1.4 2005/12/18 16:06:09 millert Exp $ */
+/* $OpenBSD: login_tis.c,v 1.5 2006/04/10 20:50:12 deraadt Exp $ */
/*
* Copyright (c) 2004 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -418,7 +418,6 @@ tis_open(struct tis_connection *tc, const char *server, char *ebuf)
error = getaddrinfo(server, tc->port, &hints, &res0);
if (error) {
strlcpy(ebuf, gai_strerror(error), TIS_BUFSIZ);
- freeaddrinfo(res0);
return (-1);
}