Commit 8a55be20 authored by Dafydd Harries's avatar Dafydd Harries

stun client: don't abort on name resolution failure

darcs-hash:20070105204635-c9803-33e02c8191579fccdbe80eaa1d7b8805ca0a9c6c.gz
parent 73ff6387
......@@ -35,7 +35,12 @@ main (void)
StunMessage *msg;
StunAttribute **attr;
g_assert (resolve(server, &he));
if (!resolve(server, &he))
{
g_debug ("failed to resolve %s\n", server);
return 1;
}
g_assert (he.h_addr_list != NULL);
sin.sin_family = AF_INET;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment