aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-01-18 12:22:22 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2015-01-18 11:25:07 +0000
commitc326fcaf9b0c1f0421c67a9ba4a929e19bce1054 (patch)
tree89fcc515d19db48744a66f6b2a2a31db47bf7b1b /asn1
parent13b1e907f108d3978f09c5fb2fa33bd09d6bb8af (diff)
LDAP: g8c608e6 did not include the changes in template file, that got lost afterwards
Change-Id: I5d79d3e48c1ad83713a312dce39b749f47b0ecc8 Reviewed-on: https://code.wireshark.org/review/6612 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'asn1')
-rw-r--r--asn1/ldap/packet-ldap-template.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/asn1/ldap/packet-ldap-template.c b/asn1/ldap/packet-ldap-template.c
index 7a718cf3f3..42574bda81 100644
--- a/asn1/ldap/packet-ldap-template.c
+++ b/asn1/ldap/packet-ldap-template.c
@@ -1197,6 +1197,8 @@ static void
/* if we could unwrap, do a tvb shuffle */
if(pinfo->gssapi_decrypted_tvb){
decr_tvb=pinfo->gssapi_decrypted_tvb;
+ } else if (pinfo->gssapi_wrap_tvb) {
+ plain_tvb=pinfo->gssapi_wrap_tvb;
}
/* tidy up */
pinfo->decrypt_gssapi_tvb=0;
@@ -1217,7 +1219,7 @@ static void
* see if the wrapping involved encryption of the
* data; if not, just use the plaintext data.
*/
- if (!decr_tvb) {
+ if (!decr_tvb && !plain_tvb) {
if(!pinfo->gssapi_data_encrypted){
plain_tvb = tvb_new_subset_remaining(gssapi_tvb, ver_len);
}