diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-22 16:51:17 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-22 16:51:17 (GMT) |
commit | e882c87033ba6af659a23df0f43b02293ec0d8be (patch) | |
tree | 34e819709a25e73e2ef8c84b44b85cd8791b106e | |
parent | 2239eb3a90357d651b2c2f55ffe0aedd982d3b30 (diff) | |
parent | 9aea48988c29a181e815be248de624c7bf29d5bc (diff) | |
download | tcl-e882c87033ba6af659a23df0f43b02293ec0d8be.zip tcl-e882c87033ba6af659a23df0f43b02293ec0d8be.tar.gz tcl-e882c87033ba6af659a23df0f43b02293ec0d8be.tar.bz2 |
Merge trunk 1997f71246: Fix [b4af93cd9f]: uninitialized bytes in http11-1.13.0.
-rw-r--r-- | unix/tclUnixSock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index 864d477..c16b081 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -1030,10 +1030,10 @@ TcpGetOptionProc( if ((len == 0) || ((len > 1) && (optionName[1] == 'k') && (strncmp(optionName, "-keepalive", len) == 0))) { + int opt = 0; #if defined(SO_KEEPALIVE) - socklen_t size; + socklen_t size = sizeof(opt); #endif - int opt = 0; if (len == 0) { Tcl_DStringAppendElement(dsPtr, "-keepalive"); @@ -1050,10 +1050,10 @@ TcpGetOptionProc( if ((len == 0) || ((len > 1) && (optionName[1] == 'n') && (strncmp(optionName, "-nodelay", len) == 0))) { + int opt = 0; #if defined(SOL_TCP) && defined(TCP_NODELAY) - socklen_t size; + socklen_t size = sizeof(opt); #endif - int opt = 0; if (len == 0) { Tcl_DStringAppendElement(dsPtr, "-nodelay"); |