diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-05-12 18:11:02 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-05-12 18:11:02 +0000 |
commit | 85a8e304ddeb73c54ad7e86271d67543484645c9 (patch) | |
tree | 1cc041f936dcdb3e5e95946361b0c75f71cd31ac /epan/dissectors/packet-ssl-utils.c | |
parent | f2ccdd6dbf1143374e62bc645a703870f2106719 (diff) |
Add the posibillity to use a key for per-packet-data.
svn path=/trunk/; revision=49259
Diffstat (limited to 'epan/dissectors/packet-ssl-utils.c')
-rw-r--r-- | epan/dissectors/packet-ssl-utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ssl-utils.c b/epan/dissectors/packet-ssl-utils.c index 1c20bbf51c..9bb63f7a9e 100644 --- a/epan/dissectors/packet-ssl-utils.c +++ b/epan/dissectors/packet-ssl-utils.c @@ -3511,11 +3511,11 @@ ssl_add_record_info(gint proto, packet_info *pinfo, guchar* data, gint data_len, SslRecordInfo* rec; SslPacketInfo* pi; - pi = (SslPacketInfo *)p_get_proto_data(pinfo->fd, proto); + pi = (SslPacketInfo *)p_get_proto_data(pinfo->fd, proto, 0); if (!pi) { pi = (SslPacketInfo *)se_alloc0(sizeof(SslPacketInfo)); - p_add_proto_data(pinfo->fd, proto, pi); + p_add_proto_data(pinfo->fd, proto, 0, pi); } real_data = (guchar *)se_alloc(data_len); @@ -3537,7 +3537,7 @@ ssl_get_record_info(tvbuff_t *parent_tvb, int proto, packet_info *pinfo, gint re { SslRecordInfo* rec; SslPacketInfo* pi; - pi = (SslPacketInfo *)p_get_proto_data(pinfo->fd, proto); + pi = (SslPacketInfo *)p_get_proto_data(pinfo->fd, proto, 0); if (!pi) return NULL; @@ -3556,11 +3556,11 @@ ssl_add_data_info(gint proto, packet_info *pinfo, guchar* data, gint data_len, g SslDataInfo *rec, **prec; SslPacketInfo *pi; - pi = (SslPacketInfo *)p_get_proto_data(pinfo->fd, proto); + pi = (SslPacketInfo *)p_get_proto_data(pinfo->fd, proto, 0); if (!pi) { pi = (SslPacketInfo *)se_alloc0(sizeof(SslPacketInfo)); - p_add_proto_data(pinfo->fd, proto,pi); + p_add_proto_data(pinfo->fd, proto, 0, pi); } rec = (SslDataInfo *)se_alloc(sizeof(SslDataInfo)+data_len); @@ -3591,7 +3591,7 @@ ssl_get_data_info(int proto, packet_info *pinfo, gint key) { SslDataInfo* rec; SslPacketInfo* pi; - pi = (SslPacketInfo *)p_get_proto_data(pinfo->fd, proto); + pi = (SslPacketInfo *)p_get_proto_data(pinfo->fd, proto, 0); if (!pi) return NULL; |