libpurple/stun.c

changeset 32983
b24f582761a4
parent 32594
f2feea134fdb
child 34304
faf0414a8b51
equal deleted inserted replaced
32979:e891b5995bf7 32983:b24f582761a4
172 struct stun_header *hdr; 172 struct stun_header *hdr;
173 struct ifconf ifc; 173 struct ifconf ifc;
174 struct ifreq *ifr; 174 struct ifreq *ifr;
175 struct sockaddr_in *sinptr; 175 struct sockaddr_in *sinptr;
176 176
177 memset(&in, 0, sizeof(in));
178
177 len = recv(source, buffer, sizeof(buffer) - 1, 0); 179 len = recv(source, buffer, sizeof(buffer) - 1, 0);
178 if (!len) { 180 if (!len) {
179 purple_debug_warning("stun", "unable to read stun response\n"); 181 purple_debug_warning("stun", "unable to read stun response\n");
180 return; 182 return;
181 } 183 }

mercurial