mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Fix crash in unsuccessful uses of nss_db
This commit is contained in:
@ -71,11 +71,14 @@ CONCAT(_nss_db_set,ENTNAME) (int stayopen)
|
||||
|
||||
status = internal_setent (DBFILE, &state);
|
||||
|
||||
/* Remember STAYOPEN flag. */
|
||||
if (status == NSS_STATUS_SUCCESS)
|
||||
keep_db |= stayopen;
|
||||
/* Reset the sequential index. */
|
||||
entidx = (const char *) state.header + state.header->valstroffset;
|
||||
{
|
||||
/* Remember STAYOPEN flag. */
|
||||
keep_db |= stayopen;
|
||||
|
||||
/* Reset the sequential index. */
|
||||
entidx = (const char *) state.header + state.header->valstroffset;
|
||||
}
|
||||
|
||||
__libc_lock_unlock (lock);
|
||||
|
||||
|
Reference in New Issue
Block a user