Fix SocketAddress AF_UNIX support
authorDave Watson <davejwatson@fb.com>
Wed, 24 Sep 2014 18:28:48 +0000 (11:28 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Fri, 26 Sep 2014 22:25:35 +0000 (15:25 -0700)
commit7b474bc67d82c20452d28472a85f9f5dd153ce01
treec70ef341a2c73a0a4d851e703bb9669a4f54c605
parent96be388882c179b1454f5c060a187597b9dc2654
Fix SocketAddress AF_UNIX support

Summary: check external_ vs. AF_UNIX.  Also fix reset() to reset storage_.addr

Test Plan: fbconfig folly/test:network_address_test; fbmake runtests

Reviewed By: soren@fb.com

Subscribers: tudorb, trunkagent, doug, njormrod

FB internal diff: D1575098
folly/SocketAddress.cpp
folly/SocketAddress.h
folly/test/SocketAddressTest.cpp