From ad0f765a096015f223fbb45ed96c19b821e0bb44 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 16 Jun 2011 15:32:00 +0200 Subject: s3-smbd: Exit cleanly if we can't create an address string. Signed-off-by: Andrew Bartlett --- source3/smbd/process.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 6cf793a77f..39fd3d7cd1 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2975,7 +2975,9 @@ void smbd_process(struct smbd_server_connection *sconn) sconn->remote_address, talloc_tos()); if (remaddr == NULL) { - + DEBUG(0,("%s: tsocket_address_inet_addr_string remote failed - %s\n", + __location__, strerror(errno))); + exit_server_cleanly("tsocket_address_inet_addr_string remote failed.\n"); } } else { remaddr = "0.0.0.0"; -- cgit