diff options
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r-- | networking/ftpd.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index 375cc0c..9d43ea3 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c @@ -461,21 +461,6 @@ handle_epsv(void) free(response); } -/* libbb candidate */ -static -len_and_sockaddr* get_peer_lsa(int fd) -{ - len_and_sockaddr *lsa; - socklen_t len = 0; - - if (getpeername(fd, NULL, &len) != 0) - return NULL; - lsa = xzalloc(LSA_LEN_SIZE + len); - lsa->len = len; - getpeername(fd, &lsa->u.sa, &lsa->len); - return lsa; -} - static void handle_port(void) { |