projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wrong type causing invalid reads
[oweals/gnunet.git]
/
src
/
ats
/
gnunet-service-ats_addresses_simplistic.c
diff --git
a/src/ats/gnunet-service-ats_addresses_simplistic.c
b/src/ats/gnunet-service-ats_addresses_simplistic.c
index 47682171b5301e217eaea29698405fdf70cdade7..74a4b43d76ee3745d1b1412f5fd0b50f56ca632a 100644
(file)
--- a/
src/ats/gnunet-service-ats_addresses_simplistic.c
+++ b/
src/ats/gnunet-service-ats_addresses_simplistic.c
@@
-1198,7
+1198,7
@@
recalculate_preferences (struct PreferencePeer *p)
(*dest) = p_rel_global;
else
{
- dest = GNUNET_malloc (sizeof (
float
));
+ dest = GNUNET_malloc (sizeof (
double
));
(*dest) = p_rel_global;
GNUNET_CONTAINER_multihashmap_put(s->prefs,
&p->id.hashPubKey,