aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-11 10:21:45 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-11 10:21:45 -0400
commit46efc0ff35a12206ee2d17bf46dade29877594ed (patch)
treee1f6903f2b37b12cff300ebdf839300ffc728939
parentb356b3907a6424d9e1a14722e9729529862a698f (diff)
downloadtor-46efc0ff35a12206ee2d17bf46dade29877594ed.tar.gz
tor-46efc0ff35a12206ee2d17bf46dade29877594ed.zip
Correct comment on build_establish_intro_dos_extension
-rw-r--r--src/feature/hs/hs_cell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/hs/hs_cell.c b/src/feature/hs/hs_cell.c
index 3147b898bc..d691a1b007 100644
--- a/src/feature/hs/hs_cell.c
+++ b/src/feature/hs/hs_cell.c
@@ -494,7 +494,8 @@ build_establish_intro_dos_param(trn_cell_extension_dos_t *dos_ext,
}
/* Build the DoS defense cell extension and put it in the given extensions
- * object. This can't fail. */
+ * object. Return 0 on success, -1 on failure. (Right now, failure is only
+ * possible if there is a bug.) */
static int
build_establish_intro_dos_extension(const hs_service_config_t *service_config,
trn_cell_extension_t *extensions)
@@ -1075,4 +1076,3 @@ hs_cell_introduce1_data_clear(hs_cell_introduce1_data_t *data)
/* The data object has no ownership of any members. */
memwipe(data, 0, sizeof(hs_cell_introduce1_data_t));
}
-