From: Felix Fietkau Date: Mon, 3 Oct 2011 10:44:06 +0000 (+0200) Subject: do not memcmp padding bytes in config_diff X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=210b973708d62137b8283d43908292039056f415;p=oweals%2Fnetifd.git do not memcmp padding bytes in config_diff --- 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;