Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-118417

JSON logging - add wrapper function that checks for NULL

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • None
    • 389-ds-base
    • None
    • No
    • None
    • rhel-idm-ds
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Ticket created from upstream issue: https://github.com/389ds/389-ds-base/issues/6891


      *Issue Description*

      The jsonc library will crash if you call json_obj_add_str() with a nULL vlaue. So there are a lot of NULL checks in accesslog.c. It would be easier to just create a wrapper that will check for NULL and skip adding the string to the json object. Then we can remove all the NULL checks.

              idm-ds-dev-bugs IdM DS Dev
              tbordaz@redhat.com Thierry Bordaz
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: