s3-smbd: Exit cleanly if we can't create an address string.
authorAndreas Schneider <asn@samba.org>
Thu, 16 Jun 2011 13:32:00 +0000 (15:32 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Jul 2011 08:28:21 +0000 (18:28 +1000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/process.c

index 6cf793a77f743013154c5b33e1962cfa16238891..39fd3d7cd19df29b60105d432fce6a3125bc3102 100644 (file)
@@ -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";