Skip to content
Snippets Groups Projects
Commit a3d77618 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

check that bind() returns success

parent e55f502e
No related branches found
No related tags found
No related merge requests found
......@@ -537,6 +537,10 @@ CURLcode Curl_tftp_connect(struct connectdata *conn, bool *done)
/* Bind to any interface, random UDP port */
rc = bind(state->sockfd, &state->local_addr, sizeof(state->local_addr));
if(rc) {
failf(conn->data, "failed to bind\n");
return CURLE_COULDNT_CONNECT;
}
Curl_pgrsStartNow(conn->data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment