exit with nonzero status if certificate expiration dump fails

Fixes bug 23488.

Bugfix on b2a7e8df900eabe41d6e866f; bug not in any released Tor.
This commit is contained in:
Nick Mathewson 2017-09-12 19:05:33 -04:00
parent 3092c8bb3e
commit c3892a582f

View File

@ -3785,7 +3785,6 @@ tor_main(int argc, char *argv[])
case CMD_KEY_EXPIRATION: case CMD_KEY_EXPIRATION:
init_keys(); init_keys();
result = log_cert_expiration(); result = log_cert_expiration();
result = 0;
break; break;
case CMD_LIST_FINGERPRINT: case CMD_LIST_FINGERPRINT:
result = do_list_fingerprint(); result = do_list_fingerprint();