Browse Source

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

svn:r6050
Roger Dingledine 19 years ago
parent
commit
276a7bd038
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/or/config.c

+ 2 - 1
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;