Skip to content

Commit

Permalink
core: resolve/create_srv_pref_list() - insert at correct position in …
Browse files Browse the repository at this point in the history
…list
  • Loading branch information
anomarme committed Mar 23, 2024
1 parent 0fb15fe commit f35cf89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/resolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -1526,8 +1526,8 @@ size_t create_srv_pref_list(char *proto, struct dns_srv_proto *list)
if(naptr_proto_supported(i) == 0) {
continue;
} else {
list[i - 1].proto_pref = tmp.proto_pref;
list[i - 1].proto = i;
list[list_len].proto_pref = tmp.proto_pref;
list[list_len].proto = i;
list_len++;
}
};
Expand Down

0 comments on commit f35cf89

Please sign in to comment.