chbind: logic error oops
authorSam Hartman <hartmans@debian.org>
Sun, 24 Mar 2013 20:20:03 +0000 (16:20 -0400)
committerSam Hartman <hartmans@debian.org>
Sun, 24 Mar 2013 20:20:03 +0000 (16:20 -0400)
src/modules/rlm_eap/libeap/eap_chbind.c

index 7682b90..b62115a 100644 (file)
@@ -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;