Fix getsid() to use "=" instead of "==".
Not objected to by: audit
This commit is contained in:
parent
1d073b1d43
commit
4c061a9da1
@ -173,7 +173,7 @@ getsid(p, uap)
|
||||
if (uap->pid == 0)
|
||||
goto found;
|
||||
|
||||
if ((pt == pfind(uap->pid)) == 0)
|
||||
if ((pt = pfind(uap->pid)) == 0)
|
||||
return ESRCH;
|
||||
found:
|
||||
p->p_retval[0] = pt->p_session->s_sid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user