diff options
author | Dwight <dmerriman@gmail.com> | 2007-11-30 21:30:24 -0500 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2007-11-30 21:30:24 -0500 |
commit | 6b0f00c2928585c49147303d9a0762c787774af2 (patch) | |
tree | f4126b9962f4347945120535b658d9c44da62c9f /util/sock.h | |
parent | 3199971604dd99a4414b90588996c08bfbedcf37 (diff) | |
download | mongo-6b0f00c2928585c49147303d9a0762c787774af2.tar.gz |
query for null / undefined values
rather large transport fixes for concurrent connections and other cleanup of that.
Diffstat (limited to 'util/sock.h')
-rw-r--r-- | util/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sock.h b/util/sock.h index 21b29f7d796..ca6083aa2a2 100644 --- a/util/sock.h +++ b/util/sock.h @@ -26,7 +26,7 @@ inline int getLastError() { return errno; } #endif
struct SockAddr {
- SockAddr() { addressSize = sizeof(sockaddr_in); }
+ SockAddr() { addressSize = sizeof(sockaddr_in); memset(&sa, 0, sizeof(sa)); }
SockAddr(int sourcePort); /* source side */
SockAddr(const char *ip, int port); /* EndPoint (remote) side, or if you want to specify which interface locally */
|