mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Added {} to prevent 'ambigious else' warnings.
This commit is contained in:
parent
de10b83a23
commit
285b63e90f
@ -15,7 +15,7 @@
|
||||
* 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>
|
||||
|
||||
@ -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[2] = (val[2]<<6)|(val[3]);
|
||||
RETERR(mem_tobuffer(target, buf, n));
|
||||
if (length >= 0)
|
||||
if (length >= 0) {
|
||||
if (n > length)
|
||||
return (DNS_R_BADBASE64);
|
||||
else
|
||||
length -= n;
|
||||
}
|
||||
digits = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user