libsec: fix wrong assert condition (introduced in 775a4bea43)

This commit is contained in:
cinap_lenrek 2021-10-22 13:37:27 +00:00
parent 5e2bf722c3
commit e54b6c6cbd

View file

@ -2350,7 +2350,7 @@ tlsP(uchar *buf, int nbuf, uchar *key, int nkey, uchar *label, int nlabel, uchar
DigestState *s; DigestState *s;
int n; int n;
assert(sizeof(ai) <= xlen && sizeof(tmp) <= xlen); assert(xlen <= sizeof(ai) && xlen <= sizeof(tmp));
// generate a1 // generate a1
s = x(label, nlabel, key, nkey, nil, nil); s = x(label, nlabel, key, nkey, nil, nil);
x(seed, nseed, key, nkey, ai, s); x(seed, nseed, key, nkey, ai, s);