mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
r19091@catbus: nickm | 2008-03-27 12:42:57 -0400
Stop reading torrc when all we want to do is --hash-password. Fix based on patch from Sebastian Hahn. Backport candidate. svn:r14214
This commit is contained in:
parent
932b57813a
commit
12b217bce8
@ -19,6 +19,9 @@ Changes in version 0.2.1.1-alpha - 2008-??-??
|
||||
leaks. Bugfix on 0.2.0.19-alpha.
|
||||
- Free static hashtables for policy maps and for TLS connections on
|
||||
shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
|
||||
- Do not read the configuration file when we've only been told to
|
||||
generate a password hash. Bugfix on 0.0.9pre5. Fix based on patch
|
||||
from Sebastian Hahn.
|
||||
|
||||
o Minor features:
|
||||
- Allow separate log levels to be configured for different logging
|
||||
|
@ -3681,9 +3681,13 @@ options_init_from_torrc(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
if (command == CMD_HASH_PASSWORD) {
|
||||
cf = tor_strdup("");
|
||||
} else {
|
||||
cf = load_torrc_from_disk(argc, argv);
|
||||
if (!cf)
|
||||
goto err;
|
||||
}
|
||||
|
||||
retval = options_init_from_string(cf, command, command_arg, &errmsg);
|
||||
tor_free(cf);
|
||||
|
Loading…
Reference in New Issue
Block a user