summaryrefslogtreecommitdiff
path: root/src/mod_authn_gssapi.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-12-10 15:15:33 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2022-12-10 15:15:33 -0500
commit5e14db43b7212b52f1cfcd2b0fce41df7fc419eb (patch)
tree1ae34085634983b89f972101f51785ce4d7ff30b /src/mod_authn_gssapi.c
parentabf470bebe446db762e01d04e894691390da7d45 (diff)
downloadlighttpd-git-5e14db43b7212b52f1cfcd2b0fce41df7fc419eb.tar.gz
[multiple] employ ck_calloc, ck_malloc shared code
employ ck_calloc(), ck_malloc() shared code to slightly reduce code size (centralize the ck_assert() to check that memory allocation succeeded)
Diffstat (limited to 'src/mod_authn_gssapi.c')
-rw-r--r--src/mod_authn_gssapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_authn_gssapi.c b/src/mod_authn_gssapi.c
index 374e69a9..bb33de33 100644
--- a/src/mod_authn_gssapi.c
+++ b/src/mod_authn_gssapi.c
@@ -56,7 +56,7 @@ INIT_FUNC(mod_authn_gssapi_init) {
{ "gssapi", mod_authn_gssapi_check, NULL };
static http_auth_backend_t http_auth_backend_gssapi =
{ "gssapi", mod_authn_gssapi_basic, NULL, NULL };
- plugin_data *p = calloc(1, sizeof(*p));
+ plugin_data *p = ck_calloc(1, sizeof(*p));
/* register http_auth_scheme_gssapi and http_auth_backend_gssapi */
http_auth_scheme_gssapi.p_d = p;