diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-12-12 02:20:19 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-12-12 02:20:19 +0000 |
commit | d3abc660dcccaf44354a2b7c61605f68795fa885 (patch) | |
tree | c2757b6a7a722c928370a0f11066db5e74a602f5 /src/mesh | |
parent | db5c55f93ef3f945cd3e896b293f7f342477b334 (diff) | |
download | gnunet-d3abc660dcccaf44354a2b7c61605f68795fa885.tar.gz gnunet-d3abc660dcccaf44354a2b7c61605f68795fa885.zip |
- fix
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/mesh_api.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 86d032824..0da4d3e93 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c | |||
@@ -1834,9 +1834,11 @@ GNUNET_MESH_announce_regex (struct GNUNET_MESH_Handle *h, | |||
1834 | 1834 | ||
1835 | len = strlen (regex); | 1835 | len = strlen (regex); |
1836 | msgsize = sizeof(struct GNUNET_MESH_RegexAnnounce) + len; | 1836 | msgsize = sizeof(struct GNUNET_MESH_RegexAnnounce) + len; |
1837 | if (UINT16_MAX > msgsize) | 1837 | if (UINT16_MAX < msgsize) |
1838 | { | 1838 | { |
1839 | LOG (GNUNET_ERROR_TYPE_ERROR, "Regex size %u too big.\n", len); | 1839 | LOG (GNUNET_ERROR_TYPE_ERROR, |
1840 | "Regex size %u (%u) too big.\n", | ||
1841 | len, msgsize); | ||
1840 | GNUNET_abort(); | 1842 | GNUNET_abort(); |
1841 | } | 1843 | } |
1842 | 1844 | ||