[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mpop-users] [PATCH 9/9] Allow the fingerprint octets to be separated by spaces as well as colons
---
src/conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf.c b/src/conf.c
index 1a2d705..d4c6619 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -346,7 +346,7 @@ unsigned char *get_fingerprint(const char *s, size_t len)
return NULL;
}
}
- if (i < len - 1 && s[3 * i + 2] != ':')
+ if (i < len - 1 && s[3 * i + 2] != ':' && s[3 * i + 2] != ' ')
{
free(fingerprint);
return NULL;
--
2.1.1