summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbsd-compat/fake-getaddrinfo.c5
1 files changed, 3 insertions, 2 deletions
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 @@
13#include "xmalloc.h" 13#include "xmalloc.h"
14#include "ssh.h" 14#include "ssh.h"
15 15
16RCSID("$Id: fake-getaddrinfo.c,v 1.7 2003/05/18 14:13:39 djm Exp $"); 16RCSID("$Id: fake-getaddrinfo.c,v 1.8 2003/05/19 00:39:37 djm Exp $");
17 17
18#ifndef HAVE_GAI_STRERROR 18#ifndef HAVE_GAI_STRERROR
19char * 19char *
@@ -36,7 +36,8 @@ freeaddrinfo(struct addrinfo *ai)
36{ 36{
37 struct addrinfo *next; 37 struct addrinfo *next;
38 38
39 for(;ai != NULL; next = ai->ai_next) { 39 for(; ai != NULL;) {
40 next = ai->ai_next;
40 free(ai); 41 free(ai);
41 ai = next; 42 ai = next;
42 } 43 }