]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] Fix use of uninitialized network_ip in sofia_handle_sip_r_invite()
authorAndrey Volk <andywolk@gmail.com>
Tue, 26 Jan 2021 17:23:52 +0000 (20:23 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Mar 2021 16:37:06 +0000 (19:37 +0300)
src/mod/endpoints/mod_sofia/sofia.c

index dcedbc7e43cf246e32bc99beb817ab6e28656f79..e1e6435670c3735fde692b25cd424e582680d82e 100644 (file)
@@ -6516,7 +6516,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
                const char *uuid;
                switch_core_session_t *other_session;
                private_object_t *tech_pvt = switch_core_session_get_private(session);
-               char network_ip[80];
+               char network_ip[80] = "";
                int network_port = 0;
                switch_caller_profile_t *caller_profile = NULL;
                int has_t38 = 0;