mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Drop buffer first, _then_ ask for real position
This commit is contained in:
parent
2ff678f5bb
commit
7cf30ace84
1 changed files with 4 additions and 4 deletions
|
|
@ -121,10 +121,10 @@ get_real_pos:
|
|||
fp->_r += pos;
|
||||
pos = 0;
|
||||
} else {
|
||||
if (spos == -1)
|
||||
goto get_real_pos;
|
||||
fp->_p = fp->_bf._base;
|
||||
fp->_r = 0;
|
||||
if (spos == -1)
|
||||
goto get_real_pos;
|
||||
pos = spos;
|
||||
}
|
||||
}
|
||||
|
|
@ -136,11 +136,11 @@ get_real_pos:
|
|||
fp->_r += pos;
|
||||
pos = 0;
|
||||
} else {
|
||||
if (spos == -1)
|
||||
goto get_real_pos;
|
||||
fp->_p = fp->_bf._base;
|
||||
fp->_r = 0;
|
||||
FREEUB(fp);
|
||||
if (spos == -1)
|
||||
goto get_real_pos;
|
||||
pos = spos;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue