summaryrefslogtreecommitdiff
path: root/net/freeswitch/files/patch-src_switch__utils.c
blob: f75ba8ecd8234e3767c016da3efd9a8426531d63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/switch_utils.c.orig	2021-10-24 18:22:29 UTC
+++ src/switch_utils.c
@@ -1956,7 +1956,7 @@ SWITCH_DECLARE(switch_status_t) switch_find_local_ip(c
 				goto doh;
 			}
 
-			switch_copy_string(buf, get_addr(abuf, sizeof(abuf), (struct sockaddr *) &iface_out, sizeof(struct sockaddr_storage)), len);
+			switch_copy_string(buf, get_addr(abuf, sizeof(abuf), (struct sockaddr *) &iface_out, sizeof(iface_out)), len);
 			if (mask) {
 				get_netmask((struct sockaddr_in *) &iface_out, mask);
 			}