diff options
-rw-r--r-- | auth_mellon_config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/auth_mellon_config.c b/auth_mellon_config.c index a97b911..66a4032 100644 --- a/auth_mellon_config.c +++ b/auth_mellon_config.c @@ -773,11 +773,13 @@ static const char *am_set_authn_context_class_ref(cmd_parms *cmd, { am_dir_cfg_rec *d = (am_dir_cfg_rec *)struct_ptr; apr_pool_t *p= cmd->pool; + char **context_class_ref_p; if(strlen(arg) == 0) { return NULL; } - APR_ARRAY_PUSH(d->authn_context_class_ref, char*) = apr_pstrdup(p, arg); + context_class_ref_p = apr_array_push(d->authn_context_class_ref); + *context_class_ref_p = apr_pstrdup(p, arg); return NULL; } |