only declare var if we need it (SFSIP-122)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12017 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f9bfb0c509
commit
0919f6c9cb
|
@ -629,7 +629,6 @@ int localinfo4(su_localinfo_t const *hints, su_localinfo_t **rresult)
|
|||
struct ifreq ifreq[1];
|
||||
int scope, if_index, flags = 0, gni_flags = 0;
|
||||
char *if_name;
|
||||
su_sockaddr_t su2[1];
|
||||
|
||||
#if SA_LEN
|
||||
if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_addr))
|
||||
|
@ -747,6 +746,7 @@ int localinfo4(su_localinfo_t const *hints, su_localinfo_t **rresult)
|
|||
|
||||
#if SU_HAVE_IN6
|
||||
if (su_xtra) {
|
||||
su_sockaddr_t su2[1];
|
||||
/* Map IPv4 address to IPv6 address */
|
||||
memset(su2, 0, sizeof(*su2));
|
||||
su2->su_family = AF_INET6;
|
||||
|
|
Loading…
Reference in New Issue