src/stun.c

changeset 12757
ef403877ac2e
parent 12756
b8df02e0c6e5
child 12877
aebd8924bc4b
--- a/src/stun.c	Sat Jan 07 22:10:18 2006 +0000
+++ b/src/stun.c	Sat Jan 07 22:19:43 2006 +0000
@@ -224,7 +224,7 @@
 					strcpy(nattype.publicip, ip);
 			}
 
-			tmp += attrib->len;
+			tmp += ntohs(attrib->len);
 		}
 		gaim_debug_info("stun", "got public ip %s\n", nattype.publicip);
 		nattype.status = GAIM_STUN_STATUS_DISCOVERED;

mercurial