DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23492>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23492

apr_reslist_acquire always returns success

           Summary: apr_reslist_acquire always returns success
           Product: APR
           Version: 0.9.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: APR-util
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


apr_restlist_acquire() always returns success, even if resource creation failed.
Unfortunatly you can't even work around this within the resource constructor
(e.g. by returning NULL) because create_resource() doesn't return any data if
the constructor failed. 
So in the end the user is left with bogus data and APR_SUCCESS.

Code in question starts in line 370.

370 rv = create_resource(reslist, &res);
    reslist->ntotal++;
    *resource = res->opaque;
    free_container(reslist, res);
    apr_thread_mutex_unlock(reslist->listlock);
    return APR_SUCCESS;

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to