diff options
author | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-12 02:17:01 +0000 |
---|---|---|
committer | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-12 02:17:01 +0000 |
commit | 701813c2820181066762951a02fc482118aa36db (patch) | |
tree | b76dff1944677bdc94f087e70758c5531f458e58 /src/mesh/mesh_api.c | |
parent | 383c85d45bd4c0ac46112a4973f4a15923918bb8 (diff) |
- die verbosely
git-svn-id: https://gnunet.org/svn/gnunet@25402 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/mesh/mesh_api.c')
-rw-r--r-- | src/mesh/mesh_api.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 0e49fd8318..86d0328248 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1834,7 +1834,11 @@ GNUNET_MESH_announce_regex (struct GNUNET_MESH_Handle *h, len = strlen (regex); msgsize = sizeof(struct GNUNET_MESH_RegexAnnounce) + len; - GNUNET_assert (UINT16_MAX > msgsize); + if (UINT16_MAX > msgsize) + { + LOG (GNUNET_ERROR_TYPE_ERROR, "Regex size %u too big.\n", len); + GNUNET_abort(); + } { char buffer[msgsize]; |