summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsandmann <sandmann>2005-08-05 01:57:17 +0000
committersandmann <sandmann>2005-08-05 01:57:17 +0000
commit224fbe76bc48839e041b055fc9e6db48ab3b799d (patch)
tree8114a782fd852d254608459ef3f9476f074a98bc
parentcd1865158c8d0ffe794d484657a786dd652823a6 (diff)
*** empty log message ***
-rwxr-xr-xTODO2
-rw-r--r--src/lacaddress.c3
-rw-r--r--src/lacdns-query.c8
3 files changed, 8 insertions, 5 deletions
diff --git a/TODO b/TODO
index a54e819..38669a2 100755
--- a/TODO
+++ b/TODO
@@ -58,7 +58,7 @@ correctness:
* Broken-ness with _wait() functions that get the callback
immediately. This causes them to wait forever in g_main_loop_run().
- * Make sure local names are handled. (host.conf I think).
+ * Make sure local names are handled. (/etc/host.conf and /etc/hosts)
misc:
* consider moving complexity from nameserver to query, ie.
diff --git a/src/lacaddress.c b/src/lacaddress.c
index b39ecd2..cb4ef92 100644
--- a/src/lacaddress.c
+++ b/src/lacaddress.c
@@ -410,10 +410,11 @@ lac_address_new_from_name_wait (const gchar *name,
GetHostByNameInfo ghbn_info;
ghbn_info.loop = g_main_loop_new (NULL, FALSE);
+ ghbn_info.done = FALSE;
lac_address_new_lookup_all_from_name (
name, ghbn_callback, &ghbn_info);
-
+
g_main_loop_run (ghbn_info.loop);
g_main_loop_unref (ghbn_info.loop);
diff --git a/src/lacdns-query.c b/src/lacdns-query.c
index a0bb32f..13616fe 100644
--- a/src/lacdns-query.c
+++ b/src/lacdns-query.c
@@ -497,18 +497,17 @@ dns_query_next_name (DnsQuery *query)
return TRUE;
}
-/*
- * DnsQuery public functions
- */
static guint
count_dots (const gchar *s)
{
guint n_dots = 0;
+
while (*s)
{
if (*s++ == '.')
n_dots++;
}
+
return n_dots;
}
@@ -709,6 +708,9 @@ domain_is_well_formed (const gchar *domain)
return TRUE;
}
+/*
+ * DnsQuery public functions
+ */
void
dns_query (const gchar *domain,
RRType type,