summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-19 10:39:37 +1000
committerDamien Miller <djm@mindrot.org>2003-05-19 10:39:37 +1000
commitc322bbaabd1741a6671f38953897e3d9e8d850e4 (patch)
tree5629885832e4f8cdffb8e84d9ba9d40f01818da4 /openbsd-compat
parent3867bf3e7a8b9ec6b49a07a7728797e96eae8aa5 (diff)
unbreak; with dtucker
Diffstat (limited to 'openbsd-compat')
-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 }