summaryrefslogtreecommitdiffstats
path: root/lib/roken/resolve.c
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2011-10-08 04:08:44 +0000
committerstas <stas@FreeBSD.org>2011-10-08 04:08:44 +0000
commit2db247d3fc10ef5304f61dbd66448efff8cc6684 (patch)
tree353454e541452788c2b3c59d1fb19ada4daf5646 /lib/roken/resolve.c
parent33f661cecdad3182ee66b47805fa4bb212e0da6c (diff)
downloadFreeBSD-src-2db247d3fc10ef5304f61dbd66448efff8cc6684.zip
FreeBSD-src-2db247d3fc10ef5304f61dbd66448efff8cc6684.tar.gz
- Update vendor tree of heimdal to 1.5.1.
Diffstat (limited to 'lib/roken/resolve.c')
-rw-r--r--lib/roken/resolve.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/roken/resolve.c b/lib/roken/resolve.c
index b27f37a..2eeaaf3 100644
--- a/lib/roken/resolve.c
+++ b/lib/roken/resolve.c
@@ -589,6 +589,9 @@ dns_lookup_int(const char *domain, int rr_class, int rr_type)
len = min(len, size);
r = parse_reply(reply, len);
free(reply);
+
+ resolve_free_handle(handle);
+
return r;
}
@@ -627,11 +630,6 @@ rk_dns_srv_order(struct rk_dns_reply *r)
struct rk_resource_record *rr;
int num_srv = 0;
-#if defined(HAVE_INITSTATE) && defined(HAVE_SETSTATE)
- int state[256 / sizeof(int)];
- char *oldstate;
-#endif
-
rk_random_init();
for(rr = r->head; rr; rr = rr->next)
@@ -659,10 +657,6 @@ rk_dns_srv_order(struct rk_dns_reply *r)
/* sort them by priority and weight */
qsort(srvs, num_srv, sizeof(*srvs), compare_srv);
-#if defined(HAVE_INITSTATE) && defined(HAVE_SETSTATE)
- oldstate = initstate(time(NULL), (char*)state, sizeof(state));
-#endif
-
headp = &r->head;
for(ss = srvs; ss < srvs + num_srv; ) {
@@ -703,9 +697,6 @@ rk_dns_srv_order(struct rk_dns_reply *r)
}
}
-#if defined(HAVE_INITSTATE) && defined(HAVE_SETSTATE)
- setstate(oldstate);
-#endif
free(srvs);
return;
}
OpenPOWER on IntegriCloud