+ if (ctx != NULL) {
+ itkacl_free_ctx(ctx);
+ }
+ {
+ char errmsg[1024];
+ ctx = itkacl_create_ctx(errmsg, sizeof(errmsg));
+ if (ctx == NULL) {
+ ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "Error while initializing libitkacl: %s", errmsg);
+ return HTTP_INTERNAL_SERVER_ERROR;
+ }
+ }