dissect_ber_choice() returns the index of the taken arm not the tag

value


svn path=/trunk/; revision=23458
This commit is contained in:
Ronnie Sahlberg 2007-11-15 10:32:10 +00:00
parent c033ee2fc7
commit affd07f1e4

View file

@ -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);