- Timestamp:
- Feb 19, 2013 4:27:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ip_helper_generic.c
r4327 r4355 166 166 } 167 167 168 /* Done with socket */169 pj_sock_close(sock);170 171 168 /* Interface interfaces */ 172 169 ifr = (struct ifreq*) ifc.ifc_req; … … 178 175 for (i=0; i<count; ++i) { 179 176 struct ifreq *itf = &ifr[i]; 180 struct ifreq iff ;177 struct ifreq iff = *itf; 181 178 struct sockaddr *ad = &itf->ifr_addr; 182 179 … … 228 225 } 229 226 227 /* Done with socket */ 228 pj_sock_close(sock); 229 230 230 TRACE_((THIS_FILE, "done, found %d address(es)", *p_cnt)); 231 231 return (*p_cnt != 0) ? PJ_SUCCESS : PJ_ENOTFOUND; 232 232 } 233 233 234 234 235 #elif defined(PJ_HAS_NET_IF_H) && PJ_HAS_NET_IF_H != 0
Note: See TracChangeset
for help on using the changeset viewer.