aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/telnet.c2
-rw-r--r--lib/tftp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 100f29099..3dec95907 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -899,7 +899,7 @@ static CURLcode check_telnet_options(struct connectdata *conn)
}
failf(data, "Unknown telnet option %s", head->data);
- result = CURLE_UNKNOWN_TELNET_OPTION;
+ result = CURLE_UNKNOWN_OPTION;
break;
}
failf(data, "Syntax error in telnet option: %s", head->data);
diff --git a/lib/tftp.c b/lib/tftp.c
index 336beb512..02bd84242 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -1345,7 +1345,7 @@ static CURLcode tftp_do(struct connectdata *conn, bool *done)
state = (tftp_state_data_t *)conn->proto.tftpc;
if(!state)
- return CURLE_BAD_CALLING_ORDER;
+ return CURLE_TFTP_ILLEGAL;
result = tftp_perform(conn, done);