mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 01:17:04 +00:00
Check return code after string extraction
This commit is contained in:
parent
2a98fb08fe
commit
10963dd981
1 changed files with 4 additions and 1 deletions
|
@ -291,7 +291,10 @@ int ssl_expand_record(ssl,q,direction,data,len)
|
||||||
printf(" unknown record type: %d\n", ct);
|
printf(" unknown record type: %d\n", ct);
|
||||||
ERETURN(r);
|
ERETURN(r);
|
||||||
}
|
}
|
||||||
ssl_get_enum_str(ssl,enumstr,ContentType_decoder,ct);
|
if((r=ssl_get_enum_str(ssl,enumstr,ContentType_decoder,ct))) {
|
||||||
|
strncpy(enumstr, "Unknown", 20);
|
||||||
|
}
|
||||||
|
|
||||||
json_object_object_add(jobj, "msg_type", json_object_new_string(enumstr));
|
json_object_object_add(jobj, "msg_type", json_object_new_string(enumstr));
|
||||||
|
|
||||||
if(!(SSL_print_flags & SSL_PRINT_JSON))
|
if(!(SSL_print_flags & SSL_PRINT_JSON))
|
||||||
|
|
Loading…
Reference in a new issue