diff options
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/auth.c | 2 | ||||
-rw-r--r-- | source4/auth/gensec/gensec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/auth.c b/source4/auth/auth.c index 8ca7c3ea5c..b4a473a690 100644 --- a/source4/auth/auth.c +++ b/source4/auth/auth.c @@ -282,7 +282,7 @@ NTSTATUS auth_register(const void *_ops) backends = realloc_p(backends, struct auth_backend, num_backends+1); if (!backends) { - smb_panic("out of memory in auth_register"); + return NT_STATUS_NO_MEMORY; } new_ops = smb_xmemdup(ops, sizeof(*ops)); 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); |