diff options
Diffstat (limited to 'epan/dissectors/packet-spnego.c')
-rw-r--r-- | epan/dissectors/packet-spnego.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-spnego.c b/epan/dissectors/packet-spnego.c index e2f6c1bd20..0f43d25f9f 100644 --- a/epan/dissectors/packet-spnego.c +++ b/epan/dissectors/packet-spnego.c @@ -1218,8 +1218,7 @@ decrypt_gssapi_krb_cfx_wrap(proto_tree *tree _U_, packet_info *pinfo _U_, tvbuff if (output) { char *outdata; - outdata = g_malloc(tvb_length(tvb)); - memcpy(outdata, output, tvb_length(tvb)); + outdata = g_memdup(output, tvb_length(tvb)); g_free(output); pinfo->gssapi_decrypted_tvb=tvb_new_child_real_data(tvb, |