1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-27 13:00:59 +01:00

Fix potential null passed to function expecting nonnull (#1373)

This commit is contained in:
Pavel Punsky 2024-01-15 15:13:32 -08:00 committed by GitHub
parent 7ecfb537e9
commit f8e9892d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,7 @@ static void fix_user_directory(char *dir0) {
struct passwd *pwd = getpwuid(getuid());
if (!pwd) {
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "Cannot figure out the user's HOME directory (1)\n");
return;
} else {
home = pwd->pw_dir;
if (!home) {