[Bug 348] New: infinite loop scanning wtmpx
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Jul 10 07:02:09 EST 2002
http://bugzilla.mindrot.org/show_bug.cgi?id=348
Summary: infinite loop scanning wtmpx
Product: Portable OpenSSH
Version: -current
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: rodney at bond.net
This is with OpenSSH 3.4p1.
In the function wtmpx_get_entry() in the file loginrec.c from lines
1264 through 1292 there is a while-loop with the test condition
of "!found". Within the while-loop when the test condition wtmpx_islogin()
returns true the action "found = 1;" should be done.
Otherwise the while-loop will loop forever on a wtmpx login entry and the
entry following it. Found while running the code.
When "found = 1;" is added before line 1286 (the "continue;") the code performs
as would be expected.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-unix-dev
mailing list