Bug 348

Summary: infinite loop scanning wtmpx
Product: Portable OpenSSH Reporter: Rodney Ruddock <rodney>
Component: sshdAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: Other   
OS: All   

Description Rodney Ruddock 2002-07-10 07:02:06 AEST
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.
Comment 1 Tim Rice 2002-07-15 08:51:28 AEST
Fixxed in current
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED