Skip to content

Commit

Permalink
Fix usage of error codes defined under CURL_NO_OLDIES
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnath committed Jul 31, 2017
1 parent 436cd49 commit 4425739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/telnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/tftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4425739

Please sign in to comment.