summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-06-16 15:32:00 +0200
committerAndrew Bartlett <abartlet@samba.org>2011-07-04 18:28:21 +1000
commitad0f765a096015f223fbb45ed96c19b821e0bb44 (patch)
treec06d4b3bb34959ca8ab0c7b404168ac282a6f4cf /source3/smbd
parentd99acd26a2ecee17edf8739990dd67ef659182b1 (diff)
downloadsamba-ad0f765a096015f223fbb45ed96c19b821e0bb44.tar.gz
samba-ad0f765a096015f223fbb45ed96c19b821e0bb44.tar.bz2
samba-ad0f765a096015f223fbb45ed96c19b821e0bb44.zip
s3-smbd: Exit cleanly if we can't create an address string.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c4
1 files changed, 3 insertions, 1 deletions
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";