Commit 076d0bfe authored by Jan Včelák's avatar Jan Včelák 🚀 Committed by Daniel Salzman
Browse files

mod-onlinesign: skip upper-case letter byte in the minimal proof

An upper-case letter byte would break the minimal proof after lower casing
if there is no room for another label in the dname.
parent 39fc4916
Pipeline #32270 passed with stages
in 12 minutes and 36 seconds
......@@ -42,7 +42,11 @@ static bool inc_label(const uint8_t *buffer, uint8_t **label_ptr)
// increase in place
if (scan >= first) {
*scan += 1;
if (*scan == 'A' - 1) {
*scan = 'Z' + 1;
} else {
*scan += 1;
}
memset(scan + 1, 0x00, last - scan);
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment