server/tftpd: fix compiler warning

Follow-up from 369ce38ac1
Reported-by: Marc Hörsken
This commit is contained in:
Daniel Stenberg 2020-04-20 22:21:07 +02:00
parent df28ed6116
commit fa7daafdbc
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -709,7 +709,7 @@ int main(int argc, char **argv)
logmsg("getsockname() failed with error: (%d) %s",
error, strerror(error));
sclose(sock);
return CURL_SOCKET_BAD;
goto tftpd_cleanup;
}
switch(localaddr.sa.sa_family) {
case AF_INET: