2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00
Remove unused variable.
[ISC-Bugs #31983]
This commit is contained in:
Shawn Routhier
2012-11-28 12:55:32 -08:00
parent 1e2a127bfe
commit 8acc987b9e
2 changed files with 5 additions and 3 deletions

View File

@@ -184,6 +184,9 @@ work on other platforms. Please report any problems and suggested fixes to
loop when the peer names are mismatched.
[ISC-Bugs #31231]
- Remove an unused variable to keep compilers happy
[ISC-Bugs #31983]
Changes since 4.2.3
! Add a check for a null pointer before calling the regexec function.

View File

@@ -1850,7 +1850,6 @@ int parse_base64 (data, cfile)
struct data_string *data;
struct parse *cfile;
{
enum dhcp_token token;
const char *val;
int i, j, k;
unsigned acc = 0;
@@ -1880,7 +1879,7 @@ int parse_base64 (data, cfile)
do {
unsigned l;
token = next_token(&val, &l, cfile);
(void)next_token(&val, &l, cfile);
t = dmalloc(l + sizeof(*t), MDL);
if (t == NULL)
log_fatal("no memory for base64 buffer.");
@@ -1892,7 +1891,7 @@ int parse_base64 (data, cfile)
else
bufs = t;
last = t;
token = peek_token(&val, NULL, cfile);
(void)peek_token(&val, NULL, cfile);
valid_base64 = 1;
for (i = 0; val[i]; i++) {
/* Check to see if the character is valid. It