fpagliughi / sockpp

Modern C++ socket library.
BSD 3-Clause "New" or "Revised" License
782 stars 126 forks source link

Unreachable code means invalid get_option behavior on Windows #37

Closed borrrden closed 4 years ago

borrrden commented 4 years ago

https://github.com/fpagliughi/sockpp/blob/d8c86c01db43542a06ad05424da037f6b9892253/src/socket.cpp#L227-L230

optlen is set after the return statement

fpagliughi commented 4 years ago

Oouch. Now that's a stupid bug.