Skip to content

Commit

Permalink
Move sockent for splint
Browse files Browse the repository at this point in the history
  • Loading branch information
dafyddcrosby authored and tats committed Aug 11, 2015
1 parent adcc025 commit 14798c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ ftp_login(FTP ftp)
socklen_t socknamelen = sizeof(sockname);

if (!getsockname(sock, (struct sockaddr *)&sockname, &socknamelen)) {
struct hostent *sockent;
Str tmp = Strnew_charp(ftp->pass);
#ifdef INET6
char hostbuf[NI_MAXHOST];
Expand All @@ -157,6 +156,7 @@ ftp_login(FTP ftp)
Strcat_charp(tmp, "unknown");
#else

struct hostent *sockent;
if ((sockent = gethostbyaddr((char *)&sockname.sin_addr,
sizeof(sockname.sin_addr),
sockname.sin_family)))
Expand Down

0 comments on commit 14798c2

Please sign in to comment.