summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/gensec')
-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 0328d0dfea..8dbf9fe2db 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)
struct gensec_security_ops *,
gensec_num_backends+2);
if (!generic_security_ops) {
- smb_panic("out of memory (or failed to realloc referenced memory) in gensec_register");
+ return NT_STATUS_NO_MEMORY;
}
generic_security_ops[gensec_num_backends] = discard_const(ops);