commit | 59b9fe28f0cbad04e3af4257b50656b69b7aa613 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Oct 15 11:55:33 2013 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Oct 15 11:55:33 2013 +0200 |
tree | 03d6cd78733a3a9162839d1e962540bce6638261 | |
parent | bac0e3b7d286db2c3d0e7b066310275c8625f538 [diff] [blame] |
Fix bug in psk_identity_hint parsing
diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 847187e..8032a68 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c
@@ -1161,7 +1161,7 @@ * * opaque psk_identity_hint<0..2^16-1>; */ - len = (*p)[1] << 8 | (*p)[0]; + len = (*p)[0] << 8 | (*p)[1]; *p += 2; if( (*p) + len > end )