mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Don't stomp on errno.
This commit is contained in:
parent
57ed459b0d
commit
f998590e5b
@ -1654,7 +1654,8 @@ alloc_getcwd(void)
|
||||
path = tor_realloc(path, path_length);
|
||||
} else {
|
||||
tor_free(path);
|
||||
return NULL;
|
||||
path = NULL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
errno = saved_errno;
|
||||
|
Loading…
Reference in New Issue
Block a user