more sockaddr size
This commit is contained in:
1 parent
2497350fcd
commit
781cfa192a
1 file changed
+1
-1
+1
-1
@@ -92,7 +92,7 @@ size_t SockAddr::size() const
|
||||
case AF_INET6: return sizeof(store.in6);
|
||||
#endif
|
||||
default: // AF_UNSPEC and others
|
||||
return 0;
|
||||
return sizeof(store);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user