From fedbb4ecc708ecd9744989dbebbff2cbe88822ff Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 7 Feb 2025 13:36:24 +1300 Subject: [PATCH] s3:smbd: slightly improve no sockets panic message Signed-off-by: Douglas Bagnall Reviewed-by: Jennifer Sutton --- source3/smbd/server.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source3/smbd/server.c b/source3/smbd/server.c index f31ea894600..b3b50c72fa4 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -2552,8 +2552,11 @@ quic_disabled: smbd_init_addrchange(NULL, ev_ctx, msg_ctx, parent); } - if (!open_sockets_smbd(parent, ev_ctx, msg_ctx)) - exit_server("open_sockets_smbd() failed"); + if (!open_sockets_smbd(parent, ev_ctx, msg_ctx)) { + DBG_ERR("smbd could not bind to a socket, which can be caused " + "by a bad 'interfaces' line in smb.conf\n"); + exit_server("Could not bind to any sockets\n"); + } TALLOC_FREE(frame); /* make sure we always have a valid stackframe */ -- 2.47.3