From: Andrew Bartlett Date: Tue, 11 Oct 2011 05:13:49 +0000 (+1100) Subject: s3-smbd Give the nt error string when failing to set up encrypted transport X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=5ef4e91cf099290c8798fd12b35927eed34b2fcf s3-smbd Give the nt error string when failing to set up encrypted transport Signed-off-by: Stefan Metzmacher --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 8b6a15f9f83..1a381950dfa 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3684,9 +3684,11 @@ static void call_trans2setfsinfo(connection_struct *conn, * encryption is now *on*. */ status = srv_encryption_start(conn); if (!NT_STATUS_IS_OK(status)) { - exit_server_cleanly( - "Failure in setting " - "up encrypted transport"); + char *reason = talloc_asprintf(talloc_tos(), + "Failure in setting " + "up encrypted transport: %s", + nt_errstr(status)); + exit_server_cleanly(reason); } } return;