Module: kamailio
Branch: master
Commit: 1623f9ed1728455b72abf0a74f06bfd24365cefb
URL:
https://github.com/kamailio/kamailio/commit/1623f9ed1728455b72abf0a74f06bfd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-21T15:14:39+01:00
core: resolve - variables initialisation
---
Modified: src/core/resolve.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1623f9ed1728455b72abf0a74f06bfd…
Patch:
https://github.com/kamailio/kamailio/commit/1623f9ed1728455b72abf0a74f06bfd…
---
diff --git a/src/core/resolve.c b/src/core/resolve.c
index 36ea073bc5b..b6ee8592697 100644
--- a/src/core/resolve.c
+++ b/src/core/resolve.c
@@ -1511,7 +1511,7 @@ size_t create_srv_pref_list(char *proto, struct dns_srv_proto
*list)
{
struct dns_srv_proto tmp;
size_t i, j, list_len;
- int default_order, max;
+ int default_order = 1, max;
/* if proto available, then add only the forced protocol to the list */
if(proto && *proto != PROTO_NONE) {
@@ -1661,7 +1661,7 @@ struct hostent *naptr_sip_resolvehost(
char n_proto;
str srv_name;
naptr_bmp_t tried_bmp; /* tried bitmap */
- char origproto;
+ char origproto = PROTO_NONE;
if(proto)
origproto = *proto;