We don't need to clear oldcred here since newcred is not NULL yet.
This commit is contained in:
parent
ae0ffa73cc
commit
63c9e754e0
@ -396,10 +396,8 @@ interpret:
|
||||
#endif
|
||||
/* Make sure file descriptors 0..2 are in use. */
|
||||
error = fdcheckstd(td);
|
||||
if (error != 0) {
|
||||
oldcred = NULL;
|
||||
if (error != 0)
|
||||
goto done1;
|
||||
}
|
||||
/*
|
||||
* Set the new credentials.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user