Commit 7f031c65 authored by Niels Möller's avatar Niels Möller
Browse files

* src/srp_exchange.c (srp_format_proofs): First argument to

MAKE_MAC must not have side effects.

Rev: src/srp_exchange.c:1.9
parent 82666eb7
......@@ -140,8 +140,10 @@ srp_format_proofs(struct dh_instance *dh,
struct lsh_string **m1,
struct lsh_string **m2)
struct mac_algorithm *mac_algorithm
= make_hmac_algorithm(dh->method->H);
struct mac_instance *hmac
= MAKE_MAC(make_hmac_algorithm(dh->method->H),
= MAKE_MAC(mac_algorithm,
dh->K->length, dh->K->data);
struct lsh_string *s;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment