r12053@catbus: nickm | 2007-03-03 16:45:38 -0500

Remove some XXX012s: leave a check in connection_or_set_identity_digest it costs basically nothing to do on average.  Forget about reinstating the user check on NT Service creation.  Note that a notice message in main.c ("Is something wrong with your network connection?") is really useless.


svn:r9721
This commit is contained in:
Nick Mathewson 2007-03-03 21:55:31 +00:00
parent 25508347ec
commit 5f9f62daa2
2 changed files with 3 additions and 2 deletions

View File

@ -113,7 +113,6 @@ connection_or_set_identity_digest(or_connection_t *conn, const char *digest)
conn->next_with_same_id = tmp;
#if 1
/*XXXX012 change this back to if 0. */
/* Testing code to check for bugs in representation. */
for (; tmp; tmp = tmp->next_with_same_id) {
tor_assert(!memcmp(tmp->identity_digest, digest, DIGEST_LEN));

View File

@ -536,6 +536,8 @@ conn_close_if_marked(int i)
severity = LOG_INFO;
else
severity = LOG_NOTICE;
/* XXXX012 rewrite this error message; it generates lots of worried
* support requests. */
log_fn(severity, LD_NET, "Something wrong with your network connection? "
"We tried to write %d bytes to addr %s (fd %d, type %s, state %d)"
" but timed out. (Marked at %s:%d)",
@ -2278,7 +2280,7 @@ nt_service_install(int argc, char **argv)
NULL, &sidLen, // Don't care about the SID
NULL, &domainLen, // Don't care about the domain
&sidUse) == 0) {
/* XXXX012 For some reason, the above test segfaults. Fix that. */
/* XXXX For some reason, the above test segfaults. Fix that. */
printf("User \"%s\" doesn't seem to exist.\n", user_acct);
return -1;
} else {