src: Fix invalid memory access
This commit is contained in:
parent
68866f53b0
commit
3e2714810a
|
@ -938,7 +938,7 @@ parse_next_link_header_once(const char *first, const char *last) {
|
||||||
almost_done:
|
almost_done:
|
||||||
assert(first == last || *first == ',');
|
assert(first == last || *first == ',');
|
||||||
|
|
||||||
if (*first == ',') {
|
if (first != last) {
|
||||||
++first;
|
++first;
|
||||||
}
|
}
|
||||||
if (ok && !ign) {
|
if (ok && !ign) {
|
||||||
|
|
Loading…
Reference in New Issue