Watt32: fix server init

Somewhere in the process, programs using the Watt-32 tcp/ip stack
stopped working.
pull/4/head
Gisle Vanem 14 years ago committed by Daniel Stenberg
parent e14f136aa3
commit 9a11973403
  1. 7
      ares_init.c

@ -1,6 +1,6 @@
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2007-2010 by Daniel Stenberg
* Copyright (C) 2007-2011 by Daniel Stenberg
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
@ -832,7 +832,10 @@ DhcpNameServer
return ARES_ENOMEM;
for (i = 0; def_nameservers[i]; i++)
servers[i].addr.addrV4.s_addr = htonl(def_nameservers[i]);
{
servers[i].addr.addrV4.s_addr = htonl(def_nameservers[i]);
servers[i].addr.family = AF_INET;
}
status = ARES_EOF;
#elif defined(ANDROID)

Loading…
Cancel
Save