From c322bbaabd1741a6671f38953897e3d9e8d850e4 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 19 May 2003 10:39:37 +1000 Subject: unbreak; with dtucker --- openbsd-compat/fake-getaddrinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openbsd-compat/fake-getaddrinfo.c') diff --git a/openbsd-compat/fake-getaddrinfo.c b/openbsd-compat/fake-getaddrinfo.c index 76b8a6274..7e6044a53 100644 --- a/openbsd-compat/fake-getaddrinfo.c +++ b/openbsd-compat/fake-getaddrinfo.c @@ -13,7 +13,7 @@ #include "xmalloc.h" #include "ssh.h" -RCSID("$Id: fake-getaddrinfo.c,v 1.7 2003/05/18 14:13:39 djm Exp $"); +RCSID("$Id: fake-getaddrinfo.c,v 1.8 2003/05/19 00:39:37 djm Exp $"); #ifndef HAVE_GAI_STRERROR char * @@ -36,7 +36,8 @@ freeaddrinfo(struct addrinfo *ai) { struct addrinfo *next; - for(;ai != NULL; next = ai->ai_next) { + for(; ai != NULL;) { + next = ai->ai_next; free(ai); ai = next; } -- cgit v1.2.3