aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-04 11:03:54 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-04 11:03:54 -0800
commita1d543fc45dbd066020c8c15ea37421bdd49bc10 (patch)
treeffe23cc0352990efb71956effa47d6d1f63ed9e8 /src/core
parent4e8b4ec4396f13665dccc03363c1378cabaefeb4 (diff)
downloadnng-a1d543fc45dbd066020c8c15ea37421bdd49bc10.tar.gz
nng-a1d543fc45dbd066020c8c15ea37421bdd49bc10.tar.bz2
nng-a1d543fc45dbd066020c8c15ea37421bdd49bc10.zip
Test for duplicate address listen, and fix in TCP for same.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/defs.h b/src/core/defs.h
index ed2e353f..92ebdb86 100644
--- a/src/core/defs.h
+++ b/src/core/defs.h
@@ -55,7 +55,7 @@ typedef struct {
#define NNI_PUT16(ptr, u) \
do { \
(ptr)[0] = (uint8_t) (((uint16_t) (u)) >> 8); \
- (ptr)[0] = (uint8_t) ((uint16_t) (u)); \
+ (ptr)[1] = (uint8_t) ((uint16_t) (u)); \
} \
while (0)