diff options
-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 | ||