summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-07-24 21:03:50 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-07-24 21:48:02 +0200
commitaab7c83d0229c2c7aa3b60de3ca1b1a4eb326b55 (patch)
tree1388eed6a5a78294f6ba93fd80511e9b18025af8 /src/util
parent2eb329cc6362958537737c2a82ae593c7ba5d30a (diff)
downloadminetest-aab7c83d0229c2c7aa3b60de3ca1b1a4eb326b55.tar.gz
minetest-aab7c83d0229c2c7aa3b60de3ca1b1a4eb326b55.tar.bz2
minetest-aab7c83d0229c2c7aa3b60de3ca1b1a4eb326b55.zip
Remove some old dead code. Fix some Clang warnings in SRP (ng->N... will
always evaluate to true.
Diffstat (limited to 'src/util')
-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 cc8bac6bb..6fafe8280 100644
--- a/src/util/srp.cpp
+++ b/src/util/srp.cpp
@@ -172,7 +172,7 @@ static NGConstant *new_ng( SRP_NGType ng_type, const char *n_hex, const char *g_
mpz_init(ng->N);
mpz_init(ng->g);
- if (!ng || !ng->N || !ng->g)
+ if (!ng)
return 0;
if (ng_type != SRP_NG_CUSTOM) {
@@ -823,7 +823,7 @@ struct SRPUser *srp_user_new(SRP_HashAlgorithm alg, SRP_NGType ng_type,
mpz_init(usr->A);
mpz_init(usr->S);
- if (!usr->ng || !usr->a || !usr->A || !usr->S)
+ if (!usr->ng)
goto err_exit;
usr->username = (char*)malloc(ulen);