Skip to content

Commit

Permalink
Fix radius stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSampanis committed Oct 17, 2014
1 parent 535f984 commit c2a3c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dissectors/ec_radius.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static u_char * radius_get_attribute(u_int8 attr, u_int16 *attr_len, u_char *beg
while (begin < end) {

/* get the len of the attribute and subtract the header len */
*attr_len = *(begin + 1) - 2;
*attr_len = (u_char)*(begin + 1) - 2;

/* we have found our attribute */
if (*begin == attr) {
Expand Down

0 comments on commit c2a3c99

Please sign in to comment.