Skip to content
  • Mark Andrews's avatar
    3707. [bug] irs_resconf_load now returns ISC_R_FILENOTFOUND · cd7f8d18
    Mark Andrews authored
                            on a missing resolv.conf file and initializes the
                            structure as if it had been configured with:
    
                                    nameserver ::1
                                    nameserver 127.0.0.1
    
                            Note: Callers will need to be updated to treat
                            ISC_R_FILENOTFOUND as a qualified success or else
                            they will leak memory. The following code fragment
                            will work with both only and new versions without
                            changing the behaviour of the existing code.
    
                            resconf = NULL;
                            result = irs_resconf_load(mctx, "/etc/resolv.conf",
                                                      &resconf);
                            if (result != ISC_SUCCESS) {
                                    if (resconf != NULL)
                                            irs_resconf_destroy(&resconf);
                                    ....
                            }
    
                            [RT #35194]
    cd7f8d18