mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
RedisWriter: Pack objects consistently for hashing
This commit is contained in:
parent
60a5a14aa2
commit
b32b81d957
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user