memcpy(&a1[a1_len], vp->vp_octets, vp->length);
a1_len += vp->length;
- } else if ((algo != NULL) &&
- (strcasecmp(algo->vp_strvalue, "MD5") != 0)) {
+ } else if (strcasecmp(algo->vp_strvalue, "MD5") != 0) {
/*
* We check for "MD5-sess" and "MD5".
* Anything else is an error.
* then calculate the hash of the NT hash. Doing this
* here minimizes work for later.
*/
- if (password && !password->da->vendor &&
+ if (!password->da->vendor &&
(password->da->attr == PW_NT_PASSWORD)) {
fr_md4_calc(nthashhash, password->vp_octets, MD4_DIGEST_LENGTH);
}