aboutsummaryrefslogtreecommitdiff
path: root/src/util/srp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/srp.cpp')
-rw-r--r--src/util/srp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/srp.cpp b/src/util/srp.cpp
index f4d369d68..ceb2fef9e 100644
--- a/src/util/srp.cpp
+++ b/src/util/srp.cpp
@@ -1015,10 +1015,10 @@ void srp_user_process_challenge(struct SRPUser *usr,
goto cleanup_and_exit;
*bytes_M = usr->M;
- if (len_M) *len_M = hash_length(usr->hash_alg);
+ *len_M = hash_length(usr->hash_alg);
} else {
*bytes_M = NULL;
- if (len_M) *len_M = 0;
+ *len_M = 0;
}
cleanup_and_exit: