summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-03 12:44:06 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-03 12:44:06 +0200
commit210b973708d62137b8283d43908292039056f415 (patch)
tree738e44da2536094128b66dddcdc20f940a6d8ae1
parent367f5edba8abe7e03890ceb00c00617d64d7bf73 (diff)
do not memcmp padding bytes in config_diff
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 4f3a3cd..db69f9a 100644
--- a/config.c
+++ b/config.c
@@ -223,7 +223,7 @@ config_diff(struct blob_attr **tb1, struct blob_attr **tb2,
if (blob_len(tb1[i]) != blob_len(tb2[i]))
goto mark;
- if (memcmp(tb1[i], tb2[i], blob_pad_len(tb1[i])) != 0)
+ if (memcmp(tb1[i], tb2[i], blob_raw_len(tb1[i])) != 0)
goto mark;
continue;