result in an erroneous error log message ('garbage in format string').
[ISC-Bugs #19327]
- 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
}
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;
+ fmtbuf[l + 1] = 0;
numhunk = -2;
break;
case 'N':