[BACK]Return to nsec3_50.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mpl / bind / dist / lib / dns / rdata / generic

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/external/mpl/bind/dist/lib/dns/rdata/generic/nsec3_50.c between version 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2020/05/24 19:36:44 version 1.1.1.5, 2021/02/19 16:37:15
Line 5 
Line 5 
  *   *
  * This Source Code Form is subject to the terms of the Mozilla Public   * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this   * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.   * file, you can obtain one at https://mozilla.org/MPL/2.0/.
  *   *
  * See the COPYRIGHT file distributed with this work for additional   * See the COPYRIGHT file distributed with this work for additional
  * information regarding copyright ownership.   * information regarding copyright ownership.
Line 214  fromwire_nsec3(ARGS_FROMWIRE) {
Line 214  fromwire_nsec3(ARGS_FROMWIRE) {
         hashlen = sr.base[0];          hashlen = sr.base[0];
         isc_region_consume(&sr, 1);          isc_region_consume(&sr, 1);
   
         if (sr.length < hashlen) {          if (hashlen < 1 || sr.length < hashlen) {
                 RETERR(DNS_R_FORMERR);                  RETERR(DNS_R_FORMERR);
         }          }
         isc_region_consume(&sr, hashlen);          isc_region_consume(&sr, hashlen);

Legend:
Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5

CVSweb <webmaster@jp.NetBSD.org>