projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
832f93c
)
Check for no challenge/response in packet
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 18:22:15 +0000
(13:22 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 18:23:00 +0000
(13:23 -0500)
Closes Coverity #720480
src/modules/rlm_otp/otp_mppe.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_otp/otp_mppe.c
b/src/modules/rlm_otp/otp_mppe.c
index
ccfa533
..
2f5310a
100644
(file)
--- a/
src/modules/rlm_otp/otp_mppe.c
+++ b/
src/modules/rlm_otp/otp_mppe.c
@@
-51,6
+51,8
@@
otp_mppe(REQUEST *request, otp_pwe_t pwe, const otp_option_t *opt,
cvp = pairfind(request->packet->vps, pwattr[pwe - 1]->attr, pwattr[pwe - 1]->vendor, TAG_ANY);
rvp = pairfind(request->packet->vps, pwattr[pwe]->attr, pwattr[pwe]->vendor, TAG_ANY);
+ if (!cvp || !rvp) return;
+
switch (pwe) {
case PWE_PAP: