diff options
Diffstat (limited to 'epan/dissectors/packet-spnego.c')
-rw-r--r-- | epan/dissectors/packet-spnego.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-spnego.c b/epan/dissectors/packet-spnego.c index 841b4d407b..2573082255 100644 --- a/epan/dissectors/packet-spnego.c +++ b/epan/dissectors/packet-spnego.c @@ -1133,10 +1133,9 @@ decrypt_gssapi_krb_arcfour_wrap(proto_tree *tree, packet_info *pinfo, tvbuff_t * ); if (ret >= 0) { proto_tree_add_text(tree, NULL, 0, 0, "[Decrypted using: %s]", ek->key_origin); - pinfo->gssapi_decrypted_tvb=tvb_new_real_data( + pinfo->gssapi_decrypted_tvb=tvb_new_child_real_data(tvb, output_message_buffer, ret, ret); - tvb_set_child_real_data_tvbuff(tvb, pinfo->gssapi_decrypted_tvb); add_new_data_source(pinfo, pinfo->gssapi_decrypted_tvb, "Decrypted GSS-Krb5"); return; } @@ -1219,11 +1218,10 @@ decrypt_gssapi_krb_cfx_wrap(proto_tree *tree _U_, packet_info *pinfo _U_, tvbuff memcpy(outdata, output, tvb_length(tvb)); g_free(output); - pinfo->gssapi_decrypted_tvb=tvb_new_real_data( + pinfo->gssapi_decrypted_tvb=tvb_new_child_real_data(tvb, outdata, datalen-16, datalen-16); - tvb_set_child_real_data_tvbuff(tvb, pinfo->gssapi_decrypted_tvb); add_new_data_source(pinfo, pinfo->gssapi_decrypted_tvb, "Decrypted GSS-Krb5"); return; } |