X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/1da1ed6a5815deef6c33d74f1eb3c856793df3e5..bd6d65e32b835551677456bf286d09ced6859882:/rand/tlsprf.c diff --git a/rand/tlsprf.c b/rand/tlsprf.c index fa28faf4..95f5b945 100644 --- a/rand/tlsprf.c +++ b/rand/tlsprf.c @@ -493,6 +493,7 @@ grand *tlsprf_rand(const gcmac *mcx, const gcmac *mcy, #include #include +#include #include #include @@ -511,7 +512,7 @@ static int v_generate(dstr *v) d.len = v[2].len; g->ops->fill(g, d.buf, d.len); g->ops->destroy(g); - if (memcmp(v[2].buf, d.buf, d.len) != 0) { + if (MEMCMP(v[2].buf, !=, d.buf, d.len)) { ok = 0; printf("\nfail tlsprf:" "\n\tkey = ");