You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/09/27 18:01:31 UTC

DO NOT REPLY [Bug 50012] New: Please fix code in mod_session_dbd.c (dbd_remove)

https://issues.apache.org/bugzilla/show_bug.cgi?id=50012

           Summary: Please fix code in mod_session_dbd.c (dbd_remove)
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other Modules
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: zhaozg@gmail.com


Please update function dbd_remove to this:

static apr_status_t dbd_remove(request_rec * r, const char *key)
{
    apr_status_t rv;
    apr_dbd_prepared_t *statement;
    int rows = 0;
    ap_dbd_t *dbd;

    session_dbd_dir_conf *conf = ap_get_module_config(r->per_dir_config,
                                                      &session_dbd_module);
    if (conf->deletelabel == NULL) {
        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, LOG_PREFIX
            "no SessionDBDDeleteLabel has been specified");
        return APR_EGENERAL;
    }

    rv = dbd_init(r, conf->deletelabel, &dbd, &statement);
    if (rv) {
        return rv;
    }

    rv = apr_dbd_pvbquery(dbd->driver, r->pool, dbd->handle, &rows, statement,
                          key, NULL);
    if (rv != APR_SUCCESS) {
        ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, LOG_PREFIX
                      "query execution error removing session '%s' "
                      "from database", key);
        return rv;
    }

    return APR_SUCCESS;
}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 50012] Please fix code in mod_session_dbd.c (dbd_remove)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50012

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Christophe JAILLET <ch...@wanadoo.fr> ---
Same solution in PR 53452 and there has not been any update here for more than
1 year.

--> I mark it as duplicate.

*** This bug has been marked as a duplicate of bug 53452 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50012] Please fix code in mod_session_dbd.c (dbd_remove)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50012

--- Comment #1 from zhiguo zhao <zh...@gmail.com> 2010-09-27 21:06:37 EDT ---
Created an attachment (id=26093)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26093)
patch for mod_session_dbd.c   (版本 1001981)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50012] Please fix code in mod_session_dbd.c (dbd_remove)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50012

--- Comment #2 from Graham Leggett <mi...@sharp.fm> 2011-05-31 22:09:55 UTC ---
Can you describe the bug for us, and explain what the patch is trying to do?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org