Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4815

CID 1267839 dead code in /mgmt/api/CfgContextManager.cc: return TS_ERR_PARAMS;

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.1.0
    • Management API
    • None

    Description

      cond_notnull: Condition ctx, taking true branch. Now the value of ctx is not NULL.
      165 ink_assert(ctx);
      notnull: At condition ctx, the value of ctx cannot be NULL.
      dead_error_condition: The condition !ctx cannot be true.
      166 if (!ctx)

      { CID 1267839 (#1 of 1): Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: return TS_ERR_PARAMS;. 167 return TS_ERR_PARAMS; 168 }

      Attachments

        Issue Links

          Activity

            People

              ngara Nathan Garabedian
              ngara Nathan Garabedian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h