mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 09:57:20 +00:00
- Fixed a cosmetic bug where pretty-printing valid domain-search options would
result in an erroneous error log message ('garbage in format string'). [ISC-Bugs #19327]
This commit is contained in:
parent
8d7dca581a
commit
f4534b17fa
3
RELNOTES
3
RELNOTES
@ -75,6 +75,9 @@ work on other platforms. Please report any problems and suggested fixes to
|
||||
- Two uninitialized stack structures are now memset to zero, thanks to a
|
||||
patch from David Cantrell at RedHat.
|
||||
|
||||
- Fixed a cosmetic bug where pretty-printing valid domain-search options would
|
||||
result in an erroneous error log message ('garbage in format string').
|
||||
|
||||
Changes since 4.1.0b1
|
||||
|
||||
- A missing "else" in dhcrelay.c could have caused an interface not to
|
||||
|
@ -1730,11 +1730,26 @@ const char *pretty_print_option (option, data, len, emit_commas, emit_quotes)
|
||||
}
|
||||
fmtbuf [l + 1] = 0;
|
||||
break;
|
||||
case 'c':
|
||||
/* The 'c' atom is a 'D' modifier only. */
|
||||
log_error("'c' atom not following D atom in format "
|
||||
"string: %s", option->format);
|
||||
break;
|
||||
case 'D':
|
||||
/*
|
||||
* Skip the 'c' atom, if present. It does not affect
|
||||
* how we convert wire->text format (if compression is
|
||||
* present either way, we still process it).
|
||||
*/
|
||||
if (option->format[i+1] == 'c')
|
||||
i++;
|
||||
fmtbuf[l + 1] = 0;
|
||||
numhunk = -2;
|
||||
break;
|
||||
case 'd':
|
||||
fmtbuf[l] = 't';
|
||||
/* Fall Through ! */
|
||||
case 't':
|
||||
case 'D':
|
||||
fmtbuf[l + 1] = 0;
|
||||
numhunk = -2;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user