mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-25 02:47:06 +00:00
Check ssl_decode_enum() return code correctly
This commit is contained in:
parent
4997301a9d
commit
59b88f4e2b
1 changed files with 3 additions and 2 deletions
|
@ -238,8 +238,9 @@ static int decode_HandshakeType_ClientHello(ssl,dir,seg,data)
|
||||||
}
|
}
|
||||||
|
|
||||||
for(;cslen;cslen-=2){
|
for(;cslen;cslen-=2){
|
||||||
ssl_decode_enum(ssl,0,2,cipher_suite_decoder,
|
if(ssl_decode_enum(ssl,0,2,cipher_suite_decoder,
|
||||||
0,data,&cs);
|
0,data,&cs))
|
||||||
|
return(1);
|
||||||
ssl_print_cipher_suite(ssl,(vj<<8)|vn,P_HL,cs);
|
ssl_print_cipher_suite(ssl,(vj<<8)|vn,P_HL,cs);
|
||||||
LF;
|
LF;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue