src/stun.c

changeset 12757
ef403877ac2e
parent 12756
b8df02e0c6e5
child 12877
aebd8924bc4b
equal deleted inserted replaced
12756:b8df02e0c6e5 12757:ef403877ac2e
222 ip = inet_ntoa(in); 222 ip = inet_ntoa(in);
223 if(ip) 223 if(ip)
224 strcpy(nattype.publicip, ip); 224 strcpy(nattype.publicip, ip);
225 } 225 }
226 226
227 tmp += attrib->len; 227 tmp += ntohs(attrib->len);
228 } 228 }
229 gaim_debug_info("stun", "got public ip %s\n", nattype.publicip); 229 gaim_debug_info("stun", "got public ip %s\n", nattype.publicip);
230 nattype.status = GAIM_STUN_STATUS_DISCOVERED; 230 nattype.status = GAIM_STUN_STATUS_DISCOVERED;
231 nattype.type = GAIM_STUN_NAT_TYPE_UNKNOWN_NAT; 231 nattype.type = GAIM_STUN_NAT_TYPE_UNKNOWN_NAT;
232 nattype.lookup_time = time(NULL); 232 nattype.lookup_time = time(NULL);

mercurial