diff options
author | David Barksdale <amatus@amat.us> | 2017-02-20 13:08:08 -0600 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2017-02-20 13:11:19 -0600 |
commit | fe4f6e8cedfa8d0a57b0247727fc4849d38c2f3a (patch) | |
tree | cbcbc99a93ec8f466426190a340cc46f54d2641e /src/datastore/gnunet-service-datastore.c | |
parent | f553963d649374a75cc5a6e57df39d83565eb913 (diff) | |
download | gnunet-fe4f6e8cedfa8d0a57b0247727fc4849d38c2f3a.tar.gz gnunet-fe4f6e8cedfa8d0a57b0247727fc4849d38c2f3a.zip |
Restrict update to positive priority deltas
This is only ever called with positive values and the mysql and postgres
plugins were not handling negative values correctly anyway.
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 6f1bd2b6d..445c3576e 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -889,7 +889,7 @@ check_present (void *cls, | |||
889 | expiration.abs_value_us)) | 889 | expiration.abs_value_us)) |
890 | plugin->api->update (plugin->api->cls, | 890 | plugin->api->update (plugin->api->cls, |
891 | uid, | 891 | uid, |
892 | (int32_t) ntohl (dm->priority), | 892 | ntohl (dm->priority), |
893 | GNUNET_TIME_absolute_ntoh (dm->expiration), | 893 | GNUNET_TIME_absolute_ntoh (dm->expiration), |
894 | &check_present_continuation, | 894 | &check_present_continuation, |
895 | pc->client); | 895 | pc->client); |