diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-25 21:08:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-25 21:08:55 +0000 |
commit | 537903a8dc4c3ecf2dfa382af0289ddf890adfc7 (patch) | |
tree | 93e448c15c843861bd5dfe86c7cad3245abedfe7 /src/hello/hello.c | |
parent | 2b61888a0bf1d41b2b25256ca9834c3040551ce9 (diff) | |
download | gnunet-537903a8dc4c3ecf2dfa382af0289ddf890adfc7.tar.gz gnunet-537903a8dc4c3ecf2dfa382af0289ddf890adfc7.zip |
fixing common off-by-one error with respect to maximum message size
Diffstat (limited to 'src/hello/hello.c')
-rw-r--r-- | src/hello/hello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hello/hello.c b/src/hello/hello.c index abcc25c71..f41a601fd 100644 --- a/src/hello/hello.c +++ b/src/hello/hello.c | |||
@@ -167,7 +167,7 @@ GNUNET_HELLO_create (const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded | |||
167 | GNUNET_HELLO_GenerateAddressListCallback addrgen, | 167 | GNUNET_HELLO_GenerateAddressListCallback addrgen, |
168 | void *addrgen_cls) | 168 | void *addrgen_cls) |
169 | { | 169 | { |
170 | char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 256 - | 170 | char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1 - 256 - |
171 | sizeof (struct GNUNET_HELLO_Message)]; | 171 | sizeof (struct GNUNET_HELLO_Message)]; |
172 | size_t max; | 172 | size_t max; |
173 | size_t used; | 173 | size_t used; |