library: oldproc_open has always yes check
if (info->flags | PROC_UID) Something OR a non-zero constant is always true. Looks like it should be and'ed for the standard flag masking pattern. References: Coverity #99118 Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
parent
f85d9a2b95
commit
bfb7361980
@ -977,7 +977,7 @@ static inline int oldproc_open (
|
|||||||
if (info->PT == NULL) {
|
if (info->PT == NULL) {
|
||||||
va_start(vl, supp_flgs);
|
va_start(vl, supp_flgs);
|
||||||
ids = va_arg(vl, int*);
|
ids = va_arg(vl, int*);
|
||||||
if (info->flags | PROC_UID) num = va_arg(vl, int);
|
if (info->flags & PROC_UID) num = va_arg(vl, int);
|
||||||
va_end(vl);
|
va_end(vl);
|
||||||
if (NULL == (info->PT = openproc(info->flags | supp_flgs, ids, num)))
|
if (NULL == (info->PT = openproc(info->flags | supp_flgs, ids, num)))
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user