do not memcmp padding bytes in config_diff
authorFelix Fietkau <nbd@openwrt.org>
Mon, 3 Oct 2011 10:44:06 +0000 (12:44 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 3 Oct 2011 10:44:06 +0000 (12:44 +0200)
config.c

index 4f3a3cd77fd5860190f44a2797a9fc038c88e789..db69f9a411a40f52802d7c4ec3feee6623539f55 100644 (file)
--- 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;