From bb551970b836e8003c037cdfb18c4179f83351c2 Mon Sep 17 00:00:00 2001 From: Jan Kadlec <jan.kadlec@nic.cz> Date: Wed, 18 Jul 2012 19:36:20 +0200 Subject: [PATCH] Small fix. --- src/libknot/zone/zone-diff.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libknot/zone/zone-diff.c b/src/libknot/zone/zone-diff.c index 400f24f2a9..a52f559ff8 100644 --- a/src/libknot/zone/zone-diff.c +++ b/src/libknot/zone/zone-diff.c @@ -83,14 +83,16 @@ static int knot_zone_diff_load_soas(const knot_zone_contents_t *zone1, if (ns_serial_compare(soa_serial1, soa_serial2) == 0) { dbg_zonediff("zone_diff: " "second zone must have higher serial than the " - "first one.\n"); + "first one. (%d vs. %d)\n", + soa_serial1, soa_serial2); return KNOT_ENODIFF; } - if (ns_serial_compare(soa_serial1, soa_serial2) == 0) { + if (ns_serial_compare(soa_serial1, soa_serial2) > 0) { dbg_zonediff("zone_diff: " "second zone must have higher serial than the " - "first one.\n"); + "first one. (%d vs. %d)\n", + soa_serial1, soa_serial2); return KNOT_ERANGE; } -- GitLab