Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Jun 10, 2017
1 parent 44a8da4 commit f95c734
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/obfs/auth_chain.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ int auth_chain_a_client_post_decrypt(obfs *self, char **pplaindata, int dataleng
if (len >= 4096) {
local->recv_buffer_size = 0;
error = 1;
LOGE("post_decrypt wrong size %d", local->recv_id);
break;
}
if ((len += 4) > local->recv_buffer_size)
Expand All @@ -394,7 +393,6 @@ int auth_chain_a_client_post_decrypt(obfs *self, char **pplaindata, int dataleng
if (memcmp(hash, recv_buffer + len - 2, 2)) {
local->recv_buffer_size = 0;
error = 1;
LOGE("post_decrypt wrong HMAC");
break;
}

Expand Down
2 changes: 1 addition & 1 deletion src/obfs/auth_chain.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2015 - 2016, Break Wa11 <[email protected]>
*/

#ifndef _OBFS_AUTH_H
#ifndef _OBFS_AUTH_CHAIN_H
#define _OBFS_AUTH_CHAIN_H

#include "obfs.h"
Expand Down

0 comments on commit f95c734

Please sign in to comment.