Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Data Flow  at packet-spnego.c:323

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

dissect_spnego_T_NegTokenInit_mechListMIC

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-spnego.c)expand/collapse
Show more  
 282  dissect_spnego_T_NegTokenInit_mechListMIC(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
 283  #line 135 "spnego.cnf"
 284   
 285    gint8 class;
 286    gboolean pc;
 287    gint32 tag;
 288    tvbuff_t *mechListMIC_tvb;
 289   
 290    /*
 291     * There seems to be two different forms this can take,
 292     * one as an octet string, and one as a general string in a  
 293     * sequence.
 294     *
 295     * Peek at the header, and then decide which it is we're seeing.
 296     */
 297    get_ber_identifier(tvb, offset, &class, &pc, &tag);
 298    if (class == BER_CLASS_UNI && pc && tag == BER_UNI_TAG_SEQUENCE) {
 299      /*
 300       * It's a sequence.
 301       */
 302      return dissect_spnego_PrincipalSeq(FALSE, tvb, offset, actx, tree,
 303                                         hf_spnego_mechListMIC);
 304    } else {
 305      /*
 306       * It's not a sequence, so dissect it as an octet string,
 307       * which is what it's supposed to be; that'll cause the
 308       * right error report if it's not an octet string, either.
 309       */
 310      offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset,
 311                                        hf_spnego_mechListMIC, &mechListMIC_tvb);
 312   
 313      /*
 314       * Now, we should be able to dispatch with that tvbuff.
 315       */
 316      if (mechListMIC_tvb && next_level_value)
 317        call_dissector(next_level_value->handle, mechListMIC_tvb, actx->pinfo, tree);
 318      return offset;
 319    }
 320   
 321   
 322   
 323    return offset;
 324  }
Show more  




Change Warning 3163.35169 : Unreachable Data Flow

Priority:
State:
Finding:
Owner:
Note: