History

libsec: fix wrong assert condition

cinap_lenrek committed 5 years ago

Commit 2c1e8511 parent 51d6c971 file · +1 −1Browse files

Showing the changes to libsec (1 of 1 file). Show all

Unified · Split

libsec/tlshand.c+1−1
@@ -2354,7 +2354,7 @@ tlsP(uchar *buf, int nbuf, uchar *key, int nkey, uchar *label, int nlabel, uchar · 2353 unmodified lines
2354 DigestState *s;2354 DigestState *s;
2355 int n;2355 int n;
2356 2356
2357 assert(sizeof(ai) <= xlen && sizeof(tmp) <= xlen);2357 assert(xlen <= sizeof(ai) && xlen <= sizeof(tmp));
2358 // generate a12358 // generate a1
2359 s = x(label, nlabel, key, nkey, nil, nil);2359 s = x(label, nlabel, key, nkey, nil, nil);
2360 x(seed, nseed, key, nkey, ai, s);2360 x(seed, nseed, key, nkey, ai, s);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t