projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e130a1d
)
quiet Coverity (fixes Coverity bug #11)
author
fcusack
<fcusack>
Wed, 23 May 2007 21:18:56 +0000
(21:18 +0000)
committer
fcusack
<fcusack>
Wed, 23 May 2007 21:18:56 +0000
(21:18 +0000)
src/modules/rlm_otp/otp_pw_valid.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_otp/otp_pw_valid.c
b/src/modules/rlm_otp/otp_pw_valid.c
index
c764a5c
..
45aecdd
100644
(file)
--- a/
src/modules/rlm_otp/otp_pw_valid.c
+++ b/
src/modules/rlm_otp/otp_pw_valid.c
@@
-92,6
+92,9
@@
otp_pw_valid(REQUEST *request, int pwe, const char *challenge,
/* otp_pwe_present() (done by caller) guarantees that both of these exist */
cvp = pairfind(request->packet->vps, pwattr[pwe - 1]);
rvp = pairfind(request->packet->vps, pwattr[pwe]);
+ /* this is just to quiet Coverity */
+ if (!rvp || !cvp)
+ return RLM_MODULE_REJECT;
/*
* Validate available vps based on pwe type.