mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix reversed condition after attempted style fix in r367196
Reported by: xtouqh@hotmail.com MFC after: 3 days
This commit is contained in:
parent
d86926912c
commit
3b9795a2e8
1 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp,
|
|||
|
||||
switch (name[1]) {
|
||||
case USER_CS_PATH:
|
||||
if (oldp == NULL && orig_oldlen < sizeof(_PATH_STDPATH)) {
|
||||
if (oldp != NULL && orig_oldlen < sizeof(_PATH_STDPATH)) {
|
||||
errno = ENOMEM;
|
||||
return (-1);
|
||||
}
|
||||
|
|
@ -88,7 +88,7 @@ sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp,
|
|||
memmove(oldp, _PATH_STDPATH, sizeof(_PATH_STDPATH));
|
||||
return (0);
|
||||
case USER_LOCALBASE:
|
||||
if (oldp == NULL && orig_oldlen < sizeof(_PATH_LOCALBASE)) {
|
||||
if (oldp != NULL && orig_oldlen < sizeof(_PATH_LOCALBASE)) {
|
||||
errno = ENOMEM;
|
||||
return (-1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue