Check ssl_decode_enum() return code correctly

This commit is contained in:
William Robinet 2021-01-27 18:32:57 +01:00
parent 4997301a9d
commit 59b88f4e2b

View file

@ -238,8 +238,9 @@ static int decode_HandshakeType_ClientHello(ssl,dir,seg,data)
}
for(;cslen;cslen-=2){
ssl_decode_enum(ssl,0,2,cipher_suite_decoder,
0,data,&cs);
if(ssl_decode_enum(ssl,0,2,cipher_suite_decoder,
0,data,&cs))
return(1);
ssl_print_cipher_suite(ssl,(vj<<8)|vn,P_HL,cs);
LF;
}