projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe85006
)
chbind: logic error oops
author
Sam Hartman
<hartmans@debian.org>
Sun, 24 Mar 2013 20:20:03 +0000
(16:20 -0400)
committer
Sam Hartman
<hartmans@debian.org>
Sun, 24 Mar 2013 20:20:03 +0000
(16:20 -0400)
src/modules/rlm_eap/libeap/eap_chbind.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_eap/libeap/eap_chbind.c
b/src/modules/rlm_eap/libeap/eap_chbind.c
index
7682b90
..
b62115a
100644
(file)
--- a/
src/modules/rlm_eap/libeap/eap_chbind.c
+++ b/
src/modules/rlm_eap/libeap/eap_chbind.c
@@
-145,7
+145,7
@@
int chbind_process(REQUEST *req, CHBIND_REQ *chbind_req)
/* If rad_authenticate succeeded, build a reply */
case RLM_MODULE_OK:
case RLM_MODULE_HANDLED:
- if (
!(chbind_req->chbind_resp = chbind_build_response(fake, &chbind_req->chbind_resp_len))
)
+ if (
(chbind_req->chbind_resp = chbind_build_response(fake, &chbind_req->chbind_resp_len)) != NULL
)
rcode = PW_AUTHENTICATION_ACK;
else
rcode = PW_AUTHENTICATION_REJECT;