diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-12-20 22:00:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-12-20 22:00:06 +0000 |
commit | cb4c3c3e62c5a81408ad58a976e423b16c3e959a (patch) | |
tree | e23d6592e5f97fe5158eb8fd13e4cff8d1604acd /src/mesh | |
parent | 795f4f2334ccdb8f4632abbd5c8b4ee83722a935 (diff) | |
download | gnunet-cb4c3c3e62c5a81408ad58a976e423b16c3e959a.tar.gz gnunet-cb4c3c3e62c5a81408ad58a976e423b16c3e959a.zip |
-fix index out of bounds
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/test_mesh_regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh/test_mesh_regex.c b/src/mesh/test_mesh_regex.c index a90d496f6..d7089dac4 100644 --- a/src/mesh/test_mesh_regex.c +++ b/src/mesh/test_mesh_regex.c | |||
@@ -262,7 +262,7 @@ incoming_tunnel (void *cls, struct GNUNET_MESH_Tunnel *tunnel, | |||
262 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 262 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
263 | "Incoming tunnel from %s to peer %d\n", | 263 | "Incoming tunnel from %s to peer %d\n", |
264 | GNUNET_i2s (initiator), i); | 264 | GNUNET_i2s (initiator), i); |
265 | if (i >= 10L && i <= 10L + MESH_REGEX_PEERS) | 265 | if ( (i >= 10L) && (i < 10L + MESH_REGEX_PEERS)) |
266 | { | 266 | { |
267 | incoming_t[i - 10L] = tunnel; | 267 | incoming_t[i - 10L] = tunnel; |
268 | ok[i - 10L] = GNUNET_OK; | 268 | ok[i - 10L] = GNUNET_OK; |