Skip to content
Snippets Groups Projects
Commit 218df8d9 authored by Aleksei Voronin's avatar Aleksei Voronin Committed by dmitriy.gerasimov
Browse files

Bugs 3508

parent 19acfe9e
No related branches found
No related tags found
No related merge requests found
......@@ -274,7 +274,7 @@ void dap_dns_client_read(dap_client_remote_t *client, void * arg) {
// Compose DNS answer
block_len = DNS_ANSWER_SIZE;
dns_reply->data = DAP_REALLOC(dns_reply->data, dns_reply->ptr + block_len);
val = 0xc000 || DNS_HEADER_SIZE; // Link to host name
val = 0xc000 | DNS_HEADER_SIZE; // Link to host name
dap_dns_buf_put_uint16(dns_reply, val);
val = DNS_RECORD_TYPE_A;
dap_dns_buf_put_uint16(dns_reply, val);
......
......@@ -205,7 +205,7 @@ static void write_cb( EPOLL_HANDLE efd, int revents, dap_server_t *sh )
total_sent += bytes_sent;
}
client->buf_out_size = 0;
memset( client->buf_out, 0, DAP_CLIENT_REMOTE_BUF + 1 );
memset( client->buf_out, 0, sizeof(client->buf_out) );
client->flags &= ~DAP_SOCK_READY_TO_WRITE;
sb_payload_ready = false;
}
......@@ -310,7 +310,7 @@ static void read_cb( EPOLL_HANDLE efd, int revents, dap_server_t *sh )
}
client->buf_in_size = 0;
memset( client->buf_in, 0, DAP_CLIENT_REMOTE_BUF + 1 );
memset( client->buf_in, 0, sizeof(client->buf_out) );
pthread_mutex_unlock( &udp_client->mutex_on_client );
......
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