aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-07-10 17:57:39 +0000
committerGuy Harris <guy@alum.mit.edu>2011-07-10 17:57:39 +0000
commitb02af4355cdb21aa32acfa2e3aa310ed66e3fe11 (patch)
tree2d145cc95bc65226fe35819c3e74fb0c6a27f90c /epan
parent4e8b5eac2dc2f212de295edf768353255469133b (diff)
Make sure the SID string attached to a dcerpc_call_value has session
duration, just as the dcerpc_call_value itself does. svn path=/trunk/; revision=37951
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-dcerpc-nt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dcerpc-nt.c b/epan/dissectors/packet-dcerpc-nt.c
index c8d1572d26..3c967480cb 100644
--- a/epan/dissectors/packet-dcerpc-nt.c
+++ b/epan/dissectors/packet-dcerpc-nt.c
@@ -1343,7 +1343,13 @@ dissect_ndr_nt_SID(tvbuff_t *tvb, int offset, packet_info *pinfo,
* inside non-dcerpc pdus, i.e. kerberos PAC structure
*/
if(dcv){
- dcv->private_data = sid_str;
+ /*
+ * sid_str has ephemeral storage duration;
+ * dcerpc_call_values have session duration,
+ * so we need to make its private data have
+ * session duration as well.
+ */
+ dcv->private_data = se_strdup(sid_str);
}
return offset;