summaryrefslogtreecommitdiff
path: root/tests/server/tftpd.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-20 22:21:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-20 22:21:31 +0200
commitfa7daafdbcd41f45bf082a0e834945034bf03203 (patch)
tree0e367edd92a1ed422c709f2329488f3ee0384310 /tests/server/tftpd.c
parentdf28ed6116862921994b1abc5147cb64360e4241 (diff)
downloadcurl-fa7daafdbcd41f45bf082a0e834945034bf03203.tar.gz
server/tftpd: fix compiler warning
Follow-up from 369ce38ac1d Reported-by: Marc Hörsken
Diffstat (limited to 'tests/server/tftpd.c')
-rw-r--r--tests/server/tftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 46b09b562..0c0e9bedf 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -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: