Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-182

zookeeper_init accepts empty host-port string and returns valid pointer to zhandle_t.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • c client
    • None
    • Linux

    • Reviewed

    Description

      Please, add this test to src/c/tests/TestZookeeperInit.cc to reproduce this:

      void testEmptyAddressString()

      { zh=zookeeper_init("",0,0,0,0,0); CPPUNIT_ASSERT(zh==0); }

      Attachments

        1. ZOOKEEPER-182-UnitTests-Init-AddressString.patch
          2 kB
          Maxim P. Dementiev
        2. ZOOKEEPER-182.patch
          0.4 kB
          Maxim P. Dementiev

        Activity

          People

            dememax Maxim P. Dementiev
            dememax Maxim P. Dementiev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: