Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2046

pn_connection_set_container should check for null or empty string

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: proton-c
    • Labels:
      None

      Description

      pn_connection_set_container() makes no checks of the ID string that gets passed in. This value is expected to be unique, so it should probably check for NULL and empty-string.

      I was passing in empty strings and it was cheerfully accepting them.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgoulish Michael Goulish
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: