mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
dns_rdataslab_subtract() bug fixes
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rdataslab.c,v 1.5 1999/06/17 00:31:32 halley Exp $ */
|
/* $Id: rdataslab.c,v 1.6 1999/06/24 19:15:55 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -298,7 +298,7 @@ dns_rdataslab_subtract(unsigned char *mslab, unsigned char *sslab,
|
|||||||
scount = *scurrent++ * 256;
|
scount = *scurrent++ * 256;
|
||||||
scount += *scurrent++;
|
scount += *scurrent++;
|
||||||
sstart = scurrent;
|
sstart = scurrent;
|
||||||
INSIST(mcount > 0 && mcount > 0);
|
INSIST(mcount > 0 && scount > 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Yes, this is inefficient!
|
* Yes, this is inefficient!
|
||||||
@@ -372,7 +372,7 @@ dns_rdataslab_subtract(unsigned char *mslab, unsigned char *sslab,
|
|||||||
/*
|
/*
|
||||||
* Copy the parts of mslab not in sslab.
|
* Copy the parts of mslab not in sslab.
|
||||||
*/
|
*/
|
||||||
mcurrent = sslab + reservelen;
|
mcurrent = mslab + reservelen;
|
||||||
mcount = *mcurrent++ * 256;
|
mcount = *mcurrent++ * 256;
|
||||||
mcount += *mcurrent++;
|
mcount += *mcurrent++;
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user