Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-2751

Return the empty string as the hostname when parsing

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Won't fix
    • 1.8, 1.8.1, 1.8.2, 1.8.3rc1
    • None
    • Server (S)
    • None

    Description

      en:

      Now when you call parse_host_key (src/libs/zbxcommon/str.c) as the host name can be returned empty string. This will occur if ":" will be processed first character expression.

      I propose to return NULL, but not an empty string.

      ru:

      ?????? ??? ?????? ??????? parse_host_key (src/libs/zbxcommon/str.c) ? ???????? ????? ????? ????? ???? ????????? ?????? ??????. ????? ????? ???????????, ???? ":" ????? ?????? ???????? ??????????????? ?????????.

      ????????? ?????????? NULL, ? ?? ?????? ??????.

      Attachments

        Activity

          People

            Unassigned Unassigned
            solo Aleksey Avdeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: