From: Rudolf Polzer Date: Fri, 9 Jul 2010 17:50:49 +0000 (+0200) Subject: fix wrong retval use X-Git-Tag: xonotic-v0.1.0preview~38^2~15^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea7860f522665a180bcca54fe2441d6d27885fae;p=xonotic%2Fd0_blind_id.git fix wrong retval use --- diff --git a/d0_blind_id.c b/d0_blind_id.c index b4f912e..8e6dcec 100644 --- a/d0_blind_id.c +++ b/d0_blind_id.c @@ -290,10 +290,10 @@ WARN_UNUSED_RESULT BOOL d0_blind_id_copy(d0_blind_id_t *ctx, const d0_blind_id_t memcpy(ctx->msg, src->msg, sizeof(ctx->msg)); ctx->msglen = src->msglen; memcpy(ctx->msghash, src->msghash, sizeof(ctx->msghash)); - return 0; + return 1; fail: d0_blind_id_clear(ctx); - return 1; + return 0; } WARN_UNUSED_RESULT BOOL d0_blind_id_generate_private_key_fastreject(d0_blind_id_t *ctx, int k, d0_fastreject_function reject, void *pass)