[haiku-bugs] Re: [Haiku] #12319: Time/NTP sometimes crashes in gethostbyname()

  • From: "a-star" <trac@xxxxxxxxxxxx>
  • Date: Mon, 20 Mar 2017 13:09:03 -0000

#12319: Time/NTP sometimes crashes in gethostbyname()
----------------------------------+----------------------------
   Reporter:  ttcoder             |      Owner:  nobody
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Network & Internet  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by a-star):

 Updated the ntp.cpp file to use the getaddrinfo function instead of the
 obsolete gethostbyname function.

 Other changes include support for ipv6 and required parameter changes and
 setup for "sendto" and "recvfrom" in ntp.cpp.

 Performed a build with the modified ntp.cpp file and everything seemed to
 worked fine. Also inspected the functionality using the graphical
 debugger.

 Kindly review the patch.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12319#comment:6>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: