diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-11-15 10:32:10 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-11-15 10:32:10 +0000 |
commit | affd07f1e494485cc377107f6b837ebfcd32fc14 (patch) | |
tree | 9410c13196d488042881233809a677314a03587b /asn1 | |
parent | c033ee2fc7fe1a9a610028e49dcfe787615c51c0 (diff) |
dissect_ber_choice() returns the index of the taken arm not the tag
value
svn path=/trunk/; revision=23458
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/ldap/ldap.cnf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/asn1/ldap/ldap.cnf b/asn1/ldap/ldap.cnf index 2cec9df32f..55c417ac0f 100644 --- a/asn1/ldap/ldap.cnf +++ b/asn1/ldap/ldap.cnf @@ -80,6 +80,13 @@ ReplControlValue B "1.2.840.113556.1.4.841" "replControlValue" #.FN_FTR ProtocolOp + if (ProtocolOp == -1) { + return offset; + } + + /* ProtocolOp is the index, not the tag so convert it to the tag value */ + ProtocolOp = ldap_ProtocolOp_choice_vals[ProtocolOp].value; + lcrp=ldap_match_call_response(tvb, actx->pinfo, tree, MessageID, ProtocolOp); if(lcrp){ tap_queue_packet(ldap_tap, actx->pinfo, lcrp); |