diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-16 18:10:21 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-16 18:10:21 +0000 |
commit | 0e592faadecfb3bc2705bf0d9e434163e4b914ca (patch) | |
tree | 69562b708620918dd9f456873ccc46b10e169382 /src/auth_algo.c | |
parent | Release 0.2.1 (diff) |
fixed packet length errors
Diffstat (limited to 'src/auth_algo.c')
-rw-r--r-- | src/auth_algo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth_algo.c b/src/auth_algo.c index f8fc34d..0a45aff 100644 --- a/src/auth_algo.c +++ b/src/auth_algo.c @@ -226,7 +226,7 @@ void auth_algo_sha1_generate(auth_algo_t* aa, key_derivation_t* kd, key_store_di int auth_algo_sha1_check_tag(auth_algo_t* aa, key_derivation_t* kd, key_store_dir_t dir, encrypted_packet_t* packet) { if(!encrypted_packet_get_auth_tag_length(packet)) - return 1; + return 0; if(!aa || !aa->params_) { log_printf(ERR, "auth algo not initialized"); |