diff options
author | Roger Dingledine <arma@torproject.org> | 2006-02-20 01:06:27 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-02-20 01:06:27 +0000 |
commit | 276a7bd038a8181575680726ab7dc8a107fd7cc8 (patch) | |
tree | bc23d70f0aa8f976a2d888ba04529af0988689cd /src | |
parent | 57bcdcecf1209a39572ac771df5a91f3e4d51172 (diff) | |
download | tor-276a7bd038a8181575680726ab7dc8a107fd7cc8.tar.gz tor-276a7bd038a8181575680726ab7dc8a107fd7cc8.zip |
the other half of fixing bug 257. catch an error in more places.
svn:r6050
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index af136f404a..21fb3216c7 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3662,7 +3662,8 @@ write_configuration_file(const char *fname, or_options_t *options) tor_free(fn_tmp); } - write_str_to_file(fname, new_val, 0); + if (write_str_to_file(fname, new_val, 0) < 0) + goto err; r = 0; goto done; |