From: Sebastien V. <se...@ji...> - 2012-07-19 15:18:53
|
Hi, Thanks for your report. I confirm this issue. It is due to sizeof(MYSTRING) that includes null-terminated character. I will fix it this week or next ones. Regards, -- Seb Le mercredi 18 juillet 2012, Sébastien GISSINGER <sgi...@gm...> a écrit : > It seems that padding apply to the reason phrase of the 401 ErrorCode is not accurate > When doing an ALLOCATE request, turnserver returns me an ERROR class message of type 401 with a reason phrase "Unauthorized" all is right as described in TURN RFC5766. > In details, the response contains the following informations : > Class 00 09 (ERROR-CODE) > Length 00 14 (20 bytes) > Reserved 00 00 > Class 04 > Code 01 > Reason 55 6e 61 75 . 74 68 6f 72 . 69 7a 65 64 . 00 00 00 00 > U n a u t h o r i z e d > > Everything is ok except the 00 00 00 00 padding at the end of the reason phrase which is not needed. > Without it the length would be 16 bytes which is already a 32bits rounded value > You can saw that behavior in Wireshark. |