mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 12:09:35 -05:00
Fix insecure chroot (coverity)
This commit is contained in:
parent
9710c2b17b
commit
79cce59ad4
1 changed files with 5 additions and 0 deletions
|
|
@ -757,6 +757,11 @@ unhandled_option:;
|
|||
rc = 1;
|
||||
goto stop;
|
||||
}
|
||||
if ( chdir( "/" ) ) {
|
||||
perror("chdir");
|
||||
rc = 1;
|
||||
goto stop;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue