ref: e54b6c6cbd4d82d70ddb4932aeafb0b028cd71f5
parent: 5e2bf722c3e5b34788bbf6e79c27b39c9941990d
author: cinap_lenrek <[email protected]>
date: Fri Oct 22 09:37:27 EDT 2021
libsec: fix wrong assert condition (introduced in 775a4bea4386c12067057de0e56dd8baa34f43ec)
--- a/sys/src/libsec/port/tlshand.c
+++ b/sys/src/libsec/port/tlshand.c
@@ -2350,7 +2350,7 @@
DigestState *s;
int n;
- assert(sizeof(ai) <= xlen && sizeof(tmp) <= xlen);
+ assert(xlen <= sizeof(ai) && xlen <= sizeof(tmp));
// generate a1
s = x(label, nlabel, key, nkey, nil, nil);
x(seed, nseed, key, nkey, ai, s);