File tree 1 file changed +3
-3
lines changed
src/net/STUN/STUNAttributes
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- //-----------------------------------------------------------------------------
1
+ //-----------------------------------------------------------------------------
2
2
// Filename: STUNErrorCodeAttribute.cs
3
3
//
4
4
// Description: Implements STUN error attribute as defined in RFC5389.
@@ -35,8 +35,8 @@ public int ErrorCode
35
35
public STUNErrorCodeAttribute ( byte [ ] attributeValue )
36
36
: base ( STUNAttributeTypesEnum . ErrorCode , attributeValue )
37
37
{
38
- ErrorClass = ( byte ) BitConverter . ToChar ( attributeValue , 2 ) ;
39
- ErrorNumber = ( byte ) BitConverter . ToChar ( attributeValue , 3 ) ;
38
+ ErrorClass = attributeValue [ 2 ] ;
39
+ ErrorNumber = attributeValue [ 3 ] ;
40
40
ReasonPhrase = Encoding . UTF8 . GetString ( attributeValue , 4 , attributeValue . Length - 4 ) ;
41
41
}
42
42
You can’t perform that action at this time.
0 commit comments