summaryrefslogtreecommitdiff
path: root/source4/auth/gensec/gensec.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/gensec/gensec.c')
-rw-r--r--source4/auth/gensec/gensec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index 72c7f96cf6..f1f1c7f83a 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -1088,7 +1088,7 @@ NTSTATUS gensec_register(const struct gensec_security_ops *ops)
smb_panic("out of memory (or failed to realloc referenced memory) in gensec_register");
}
- generic_security_ops[gensec_num_backends] = ops;
+ generic_security_ops[gensec_num_backends] = discard_const(ops);
gensec_num_backends++;
generic_security_ops[gensec_num_backends] = NULL;