STUN: The most significant 2 bits is 0xc0 in hex

pull/333/head
Changli Gao 9 years ago
parent db6a37ac1d
commit a3f27f8751

@ -37,7 +37,7 @@ INLINE int is_stun(const str *s) {
if (s->len < 20)
return 0;
if ((b[0] & 0xb0) != 0x00)
if ((b[0] & 0xc0) != 0x00)
return 0;
if ((b[3] & 0x3) != 0x0)
return 0;

Loading…
Cancel
Save