OSDir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62347] New: wrong error assignmemt


https://bz.apache.org/bugzilla/show_bug.cgi?id=62347

            Bug ID: 62347
           Summary: wrong error assignmemt
           Product: Apache httpd-2
           Version: 2.4.29
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_dav_fs
          Assignee: bugs@xxxxxxxxxxxxxxxx
          Reporter: scu.bjwu@xxxxxxxxx
  Target Milestone: ---

In function dav_fs_get_parent_resource(), all the return values are NULL.
However, it seems like this if-condition below indicates an error path:

if ((tv != APR_SUCESS && rv != APR_ERELATIVE) || !testpath || !*testpah) {
    *result_parent = NULL;
    return NULL;
}

Should we return some value (dav_error) to indicate this situation?

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx