diff options
author | Nick Kew <niq@apache.org> | 2005-11-15 11:29:27 +0100 |
---|---|---|
committer | Nick Kew <niq@apache.org> | 2005-11-15 11:29:27 +0100 |
commit | 254dd385569a1e7692cae7d8df5b827311303608 (patch) | |
tree | a88c831eead0ee3fc8c91d8984d0d898f6d11be5 /modules/aaa/mod_authn_dbd.c | |
parent | Fix driver-dependent potential memor-use bug in preparing statements (diff) | |
download | apache2-254dd385569a1e7692cae7d8df5b827311303608.tar.xz apache2-254dd385569a1e7692cae7d8df5b827311303608.zip |
Replace dodgy cast with ap_set_string_slot
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@344349 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa/mod_authn_dbd.c')
-rw-r--r-- | modules/aaa/mod_authn_dbd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/aaa/mod_authn_dbd.c b/modules/aaa/mod_authn_dbd.c index 15d1ae4bb2..460ad23b01 100644 --- a/modules/aaa/mod_authn_dbd.c +++ b/modules/aaa/mod_authn_dbd.c @@ -70,8 +70,7 @@ static const char *authn_dbd_prepare(cmd_parms *cmd, void *cfg, const char *quer authn_dbd_prepare_fn(cmd->server, query, label); /* save the label here for our own use */ - *(void**)cfg = label; - return NULL; + return ap_set_string_slot(cmd, cfg, label); } static const command_rec authn_dbd_cmds[] = { |