From: Mark Andrews Date: Thu, 15 Feb 2018 05:04:01 +0000 (+1100) Subject: test for == 0 rather than <= as value is unsigned X-Git-Tag: v9.10.8rc1~91^2~10 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b6b9a1471b390c480b4f541888a27fb366e53937;p=thirdparty%2Fbind9.git test for == 0 rather than <= as value is unsigned --- diff --git a/lib/dns/rrl.c b/lib/dns/rrl.c index 1757d022110..fc2fcb34c7d 100644 --- a/lib/dns/rrl.c +++ b/lib/dns/rrl.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2015, 2017 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2012-2015, 2017, 2018 Internet Systems Consortium, Inc. ("ISC") * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -774,7 +774,7 @@ add_log_str(isc_buffer_t *lb, const char *str, unsigned int str_len) { isc_buffer_availableregion(lb, ®ion); if (str_len >= region.length) { - if (region.length <= 0) + if (region.length == 0U) return; str_len = region.length; } diff --git a/util/copyrights b/util/copyrights index f3294d8519d..18f3565e56c 100644 --- a/util/copyrights +++ b/util/copyrights @@ -3435,7 +3435,7 @@ ./lib/dns/rootns.c C 1999,2000,2001,2002,2004,2005,2007,2008,2010,2012,2013,2014,2015,2016,2017 ./lib/dns/rpz.c C 2011,2012,2013,2014,2015,2016,2017,2018 ./lib/dns/rriterator.c C 2009,2011,2012 -./lib/dns/rrl.c C 2012,2013,2014,2015,2017 +./lib/dns/rrl.c C 2012,2013,2014,2015,2017,2018 ./lib/dns/sdb.c C 2000,2001,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2018 ./lib/dns/sdlz.c C.PORTION 1999,2000,2001,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018 ./lib/dns/soa.c C 2000,2001,2004,2005,2007,2009