[or-cvs] the other half of fixing bug 257. catch an error in more pl...
arma at seul.org
arma at seul.org
Mon Feb 20 01:06:30 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
config.c
Log Message:
the other half of fixing bug 257. catch an error in more places.
Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.519
retrieving revision 1.520
diff -u -p -d -r1.519 -r1.520
--- config.c 19 Feb 2006 23:12:26 -0000 1.519
+++ config.c 20 Feb 2006 01:06:27 -0000 1.520
@@ -3662,7 +3662,8 @@ write_configuration_file(const char *fna
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;
More information about the tor-commits
mailing list