Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
ab22351d
Commit
ab22351d
authored
4 years ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Patches
Plain Diff
[*] DNS resolver bug fix with non existent net
parent
303bbe88
No related branches found
Branches containing commit
No related tags found
5 merge requests
!251
Master
,
!250
Master
,
!162
Bugs-4158
,
!159
Bugs-4158
,
!156
bugs-4158
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/net/dap_dns_server.c
+3
-1
3 additions, 1 deletion
modules/net/dap_dns_server.c
with
3 additions
and
1 deletion
modules/net/dap_dns_server.c
+
3
−
1
View file @
ab22351d
...
...
@@ -91,7 +91,9 @@ void dap_dns_buf_put_uint32(dap_dns_buf_t *buf, uint32_t val) {
uint32_t
dap_dns_resolve_hostname
(
char
*
str
)
{
log_it
(
L_DEBUG
,
"DNS parser retrieve hostname %s"
,
str
);
dap_chain_net_t
*
l_net
=
dap_chain_net_by_name
(
"kelvin-testnet"
);
uint16_t
l_nets_count
;
dap_chain_net_t
**
l_nets
=
dap_chain_net_list
(
&
l_nets_count
);
dap_chain_net_t
*
l_net
=
l_nets
[
rand
()
%
l_nets_count
];
// get nodes list from global_db
dap_global_db_obj_t
*
l_objs
=
NULL
;
size_t
l_nodes_count
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment