commit 5eafc3f2382b5c7ee5115005b887dbe51695fd23 Author: George Kadianakis desnacked@gmail.com Date: Tue May 17 23:33:42 2011 +0200
Small fix. --- src/protocols/obfs2.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/protocols/obfs2.c b/src/protocols/obfs2.c index aba8ea9..fe50553 100644 --- a/src/protocols/obfs2.c +++ b/src/protocols/obfs2.c @@ -153,7 +153,8 @@ obfs2_state_new(int initiator, const char *shared_secret) }
if (shared_secret) - obfs2_state_set_shared_secret(state, shared_secret); + if (obfs2_state_set_shared_secret(state, shared_secret)<0) + return NULL;
/* Derive the key for what we're sending */ state->send_padding_crypto = derive_padding_key(state, seed, send_pad_type);
tor-commits@lists.torproject.org