projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79e2eca
)
gnunet-service-transport_neighbours.c requires ats_count > 0, at lest \0 terminator...
author
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 7 Sep 2011 11:17:30 +0000
(11:17 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 7 Sep 2011 11:17:30 +0000
(11:17 +0000)
src/ats/ats_api.c
patch
|
blob
|
history
diff --git
a/src/ats/ats_api.c
b/src/ats/ats_api.c
index ab3ca4e9c46c07c781cb11405605295c2d4182cd..ba80360e4fc42c0e486d46ad96d6d89f0c811e88 100644
(file)
--- a/
src/ats/ats_api.c
+++ b/
src/ats/ats_api.c
@@
-548,6
+548,7
@@
create_allocation_record (const char *plugin_name, struct Session *session,
memcpy (&ar[1], plugin_addr, plugin_addr_len);
ar->session = session;
ar->plugin_addr_len = plugin_addr_len;
+ GNUNET_assert (ats_count > 0);
GNUNET_array_grow (ar->ats, ar->ats_count, ats_count);
memcpy (ar->ats, ats,
ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information));