aboutsummaryrefslogtreecommitdiff
path: root/onion_base32.c
diff options
context:
space:
mode:
Diffstat (limited to 'onion_base32.c')
-rw-r--r--onion_base32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/onion_base32.c b/onion_base32.c
index eff5097..041ac3e 100644
--- a/onion_base32.c
+++ b/onion_base32.c
@@ -10,7 +10,7 @@ check_base32(char *subject) {
if ((offset = strspn(subject, base32_lookup)) != strlen(subject)) {
return offset;
}
- return 0;
+ return -1;
}
/* Simple and reliable base32 algorithm - "old trusty"