2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

base64_totext() encoded 16-bit final quantum incorrectly

This commit is contained in:
Andreas Gustafsson 1999-05-17 04:49:38 +00:00
parent 70fd62761d
commit 1d978b3ba2

View File

@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rdata.c,v 1.42 1999/05/07 03:24:05 marka Exp $ */
/* $Id: rdata.c,v 1.43 1999/05/17 04:49:38 gson Exp $ */
#include <config.h>
@ -969,7 +969,7 @@ base64_totext(isc_region_t *source, isc_buffer_t *target) {
buf[0] = base64[(source->base[0]>>2)&0x3f];
buf[1] = base64[((source->base[0]<<4)&0x30)|
((source->base[1]>>4)&0x0f)];
buf[2] = base64[((source->base[1]<<4)&0x3c)];
buf[2] = base64[((source->base[1]<<2)&0x3c)];
buf[3] = '=';
RETERR(str_totext(buf, target));
} else if (source->length == 1) {