the other half of fixing bug 257. catch an error in more places.

svn:r6050
This commit is contained in:
Roger Dingledine 2006-02-20 01:06:27 +00:00
parent 57bcdcecf1
commit 276a7bd038

View File

@ -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;