[haiku-bugs] [Haiku] #13522: BNetworkAddress::SetTo() doesn't store some error cases.

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Sat, 20 May 2017 02:24:18 -0000

#13522: BNetworkAddress::SetTo() doesn't store some error cases.
------------------------------+------------------------------
 Reporter:  anevilyak         |        Owner:  nobody
     Type:  bug               |       Status:  new
 Priority:  normal            |    Milestone:  Unscheduled
Component:  Kits/Network Kit  |      Version:  R1/Development
 Keywords:                    |   Blocked By:
 Blocking:                    |  Has a Patch:  0
 Platform:  All               |
------------------------------+------------------------------
 In several of BNetworkAddress's SetTo variants, there are error conditions
 that are returned, but not stored on fStatus. Consequently, if the address
 was set via the constructor, these errors may go undetected by subsequent
 calls to InitCheck().

 For instance, at http://cgit.haiku-
 os.org/haiku/tree/src/kits/network/libnetapi/NetworkAddress.cpp#n165

 If either Resolver.Get() or Resolver->InitCheck() fail, the result is not
 stored on fStatus. Similar issues are present in other SetTo variants.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13522>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: