summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 87af9556c0..b3d3932578 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2601,7 +2601,9 @@ tor_addr_to_str(char *dest, const tor_addr_t *addr, int len)
}
/** Convert the string in <b>src</b> to a tor_addr_t <b>addr</b>.
- */
+ *
+ * Return an address family on success, or -1 if an invalid address string is
+ * provided. */
int
tor_addr_from_str(tor_addr_t *addr, const char *src)
{