Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Jun 1, 2017
1 parent 5d82e13 commit 4cc019d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obfs/auth_chain.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ int auth_chain_a_client_udp_post_decrypt(obfs *self, char **pplaindata, int data
uint8_t hash[16];
ss_md5_hmac_with_key((char*)hash, plaindata, datalength - 1, local->user_key, local->user_key_len);

if (*hash != plaindata[datalength - 1])
if (*hash != ((uint8_t*)plaindata)[datalength - 1])
return 0;

ss_md5_hmac_with_key((char*)hash, plaindata + datalength - 8, 7, server->key, server->key_len);
Expand Down

0 comments on commit 4cc019d

Please sign in to comment.