X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/44ff6c114bdcd5cef753d2788d029ce46e35727a..141c12847a1c2f8cc8db03d420551584e689fb87:/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 = ");