mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Added {} to prevent 'ambigious else' warnings.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rdata.c,v 1.37 1999/02/25 00:27:02 marka Exp $ */
|
/* $Id: rdata.c,v 1.38 1999/03/11 00:29:10 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -1020,11 +1020,12 @@ base64_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) {
|
|||||||
buf[1] = (val[1]<<4)|(val[2]>>2);
|
buf[1] = (val[1]<<4)|(val[2]>>2);
|
||||||
buf[2] = (val[2]<<6)|(val[3]);
|
buf[2] = (val[2]<<6)|(val[3]);
|
||||||
RETERR(mem_tobuffer(target, buf, n));
|
RETERR(mem_tobuffer(target, buf, n));
|
||||||
if (length >= 0)
|
if (length >= 0) {
|
||||||
if (n > length)
|
if (n > length)
|
||||||
return (DNS_R_BADBASE64);
|
return (DNS_R_BADBASE64);
|
||||||
else
|
else
|
||||||
length -= n;
|
length -= n;
|
||||||
|
}
|
||||||
digits = 0;
|
digits = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user