From 7b2d13d15aac76d5028e457223d5301453b5a93a Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 22 Mar 2017 13:55:21 +1000 Subject: [PATCH] Fix typo --- utils/magiftpd/magiftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/magiftpd/magiftpd.c b/utils/magiftpd/magiftpd.c index 9fc48c5..782c28a 100644 --- a/utils/magiftpd/magiftpd.c +++ b/utils/magiftpd/magiftpd.c @@ -756,7 +756,7 @@ void init(struct ftpserver *cfg) { } getsockname(new_fd, (struct sockaddr*) &host_addr, &c); - inet_ntop(AF_INET, &(host_addr.sin_addr), client[client_count]->hostip, INET_ADDRSTRLEN); + inet_ntop(AF_INET, &(host_addr.sin_addr), clients[client_count]->hostip, INET_ADDRSTRLEN); getpeername(new_fd, (struct sockaddr *)&client, &c); inet_ntop(AF_INET, &(client.sin_addr), clients[client_count]->ip, INET_ADDRSTRLEN);