summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
993cba6)
Code duplication.
Signed-off-by: Tijs Van Buggenhout <tvbuggen@gmail.com>
error("CHAP: peer authentication already started!");
return;
}
error("CHAP: peer authentication already started!");
return;
}
- for (dp = chap_digests; dp != NULL; dp = dp->next)
- if (dp->code == digest_code)
- break;
+
+ dp = chap_find_digest(digest_code);
if (dp == NULL)
fatal("CHAP digest 0x%x requested but not available",
digest_code);
if (dp == NULL)
fatal("CHAP digest 0x%x requested but not available",
digest_code);