mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtsession/SmLock: potential null deref (CID 87561, 87957, 88181)
This commit is contained in:
parent
f14df58edb
commit
1bde7d8c5c
1 changed files with 2 additions and 1 deletions
|
@ -162,7 +162,8 @@ static Boolean CanReAuthenticate(char *name, uid_t uid, char *passwd,
|
|||
Boolean fail = False;
|
||||
|
||||
*pwent = (name == NULL) ? getpwuid(uid) : getpwnam(name);
|
||||
*spent = getspnam((*pwent)->pw_name);
|
||||
if (pwent)
|
||||
*spent = getspnam((*pwent)->pw_name);
|
||||
|
||||
#ifdef JET_AUTHDEBUG
|
||||
fprintf(stderr, "CanReAuthenticate(): %s %s %s\n",
|
||||
|
|
Loading…
Reference in a new issue