Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Core
Tor
Commits
23ce9a60
Commit
23ce9a60
authored
Oct 15, 2018
by
Nick Mathewson
🐛
Browse files
Merge branch 'maint-0.3.4'
parents
4983322c
3462f8ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/feature/hs/hs_common.c
View file @
23ce9a60
...
...
@@ -530,7 +530,7 @@ rend_data_get_address(const rend_data_t *rend_data)
return
TO_REND_DATA_V2
(
rend_data
)
->
onion_address
;
default:
/* We should always have a supported version. */
tor_assert
(
0
);
tor_assert
_unreached
();
}
}
...
...
@@ -553,7 +553,7 @@ rend_data_get_desc_id(const rend_data_t *rend_data, uint8_t replica,
return
TO_REND_DATA_V2
(
rend_data
)
->
descriptor_id
[
replica
];
default:
/* We should always have a supported version. */
tor_assert
(
0
);
tor_assert
_unreached
();
}
}
...
...
@@ -576,7 +576,7 @@ rend_data_get_pk_digest(const rend_data_t *rend_data, size_t *len_out)
}
default:
/* We should always have a supported version. */
tor_assert
(
0
);
tor_assert
_unreached
();
}
}
...
...
src/lib/log/util_bug.h
View file @
23ce9a60
...
...
@@ -103,7 +103,12 @@
} STMT_END
#endif
/* defined(TOR_UNIT_TESTS) && defined(DISABLE_ASSERTS_IN_UNIT_TESTS) */
#define tor_assert_unreached() tor_assert(0)
#define tor_assert_unreached() \
STMT_BEGIN { \
tor_assertion_failed_(SHORT_FILE__, __LINE__, __func__, \
"line should be unreached"); \
abort(); \
} STMT_END
/* Non-fatal bug assertions. The "unreached" variants mean "this line should
* never be reached." The "once" variants mean "Don't log a warning more than
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment