RedisWriter: Pack objects consistently for hashing

This commit is contained in:
Alexander A. Klimov 2018-06-05 15:01:43 +02:00 committed by Michael Friedrich
parent 60a5a14aa2
commit b32b81d957
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
#include "redis/rediswriter.hpp"
#include "icinga/customvarobject.hpp"
#include "base/json.hpp"
#include "base/object-packer.hpp"
#include "base/logger.hpp"
#include "base/serializer.hpp"
#include "base/tlsutility.hpp"
@ -88,6 +88,6 @@ String RedisWriter::HashValue(const Value& value)
else
temp = value;
return SHA1(JsonEncode(temp));
return SHA1(PackObject(temp));
}