mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix indent endless on garbage input (i.e., if it encountered EOF while
waiting for a '}' nesting terminator) Obtained from: OpenBSD rev 1.8
This commit is contained in:
parent
7538a9a0f8
commit
52608c9fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -997,7 +997,7 @@ check_type:
|
|||
if (buf_ptr >= buf_end)
|
||||
fill_buffer();
|
||||
}
|
||||
while (*buf_ptr != '\n' || in_comment) {
|
||||
while (*buf_ptr != '\n' || (in_comment && !had_eof)) {
|
||||
CHECK_SIZE_LAB;
|
||||
*e_lab = *buf_ptr++;
|
||||
if (buf_ptr >= buf_end)
|
||||
|
|
|
|||
Loading…
Reference in a new issue