summaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demo.c b/src/demo.c
index 8329c62..b47dc71 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -243,8 +243,8 @@ int pairing_check(struct NoiseState *st, const char *buf) {
if (strncasecmp(p, "and", plen)) { /* ignore "and" */
int num = -1;
for (int i=0; i<256; i++) {
- if ((!strncasecmp(p, adjectives[i], plen) && plen == strlen(adjectives[i]))
- || (!strncasecmp(p, nouns[i], plen) && plen == strlen(nouns[i] ))) {
+ if ((!strncasecmp(p, even[i], plen) && plen == strlen(even[i]))
+ || (!strncasecmp(p, odd[i], plen) && plen == strlen(odd[i] ))) {
//LOG_PRINTF(" idx=%02d h=%02x i=%02x adj=%s n=%s plen=%d s=%s\n", idx, st->handshake_hash[idx], i, adjectives[i], nouns[i], plen, p);
num = i;
break;