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

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

      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, ? ?? ?????? ??????.

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

              Created:
              Updated:
              Resolved: