--- a/loudmouth/lm-resolver.c Mon Feb 23 23:09:45 2009 -0800
+++ b/loudmouth/lm-resolver.c Tue Feb 24 15:34:31 2009 -0800
@@ -384,13 +384,19 @@
priv = GET_PRIV (resolver);
skipresult:
- if (!priv->current_result)
+ if (!priv->current_result) {
+ g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_VERBOSE,
+ "no more results from resolver\n");
return NULL;
+ };
ret_val = priv->current_result;
priv->current_result = priv->current_result->ai_next;
- if (ret_val->ai_family != AF_INET) /* FIXME: we only support IPv4 for now */
+ if (ret_val->ai_family != AF_INET) {
+ g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_VERBOSE,
+ "skipping non-IPv4 resolver entry\n");
goto skipresult;
+ };
return ret_val;
}