diff options
-rw-r--r-- | source3/smbd/service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 0ebf87f3a6..c1b6d21dc5 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -1106,7 +1106,6 @@ connection_struct *make_connection(struct smbd_server_connection *sconn, fstring service; fstring dev; int snum = -1; - char addr[INET6_ADDRSTRLEN]; fstrcpy(dev, pdev); @@ -1207,7 +1206,8 @@ connection_struct *make_connection(struct smbd_server_connection *sconn, DEBUG(3,("%s (%s) couldn't find service %s\n", get_remote_machine_name(), - client_addr(smbd_server_fd(),addr,sizeof(addr)), + tsocket_address_string( + sconn->remote_address, talloc_tos()), service)); *status = NT_STATUS_BAD_NETWORK_NAME; return NULL; |