comparison extensions/app_radgw/rgw_clients.c @ 539:6994e9a3c528

The previous commit provoked an Accounting-Response with empty authenticator... Should be fixed now.
author Sebastien Decugis <sdecugis@nict.go.jp>
date Sat, 11 Sep 2010 08:52:36 +0900
parents deb901984ce3
children a0e3af6f94fb
comparison
equal deleted inserted replaced
538:deb901984ce3 539:6994e9a3c528
838 /* We don't support this case yet */ 838 /* We don't support this case yet */
839 ASSERT(0); 839 ASSERT(0);
840 return ENOTSUP; 840 return ENOTSUP;
841 } 841 }
842 842
843 if ((*msg)->hdr->code != RADIUS_CODE_ACCOUNTING_RESPONSE) { 843 if (radius_msg_finish_srv(*msg, cli->key.data, cli->key.len, req->radius.hdr->authenticator)) {
844 if (radius_msg_finish_srv(*msg, cli->key.data, cli->key.len, req->radius.hdr->authenticator)) { 844 TRACE_DEBUG(INFO, "An error occurred while preparing the RADIUS answer");
845 TRACE_DEBUG(INFO, "An error occurred while preparing the RADIUS answer"); 845 radius_msg_free(*msg);
846 radius_msg_free(*msg); 846 free(*msg);
847 free(*msg); 847 *msg = NULL;
848 *msg = NULL; 848 return EINVAL;
849 return EINVAL;
850 }
851 } 849 }
852 850
853 /* Debug */ 851 /* Debug */
854 TRACE_DEBUG(FULL, "RADIUS message ready for sending:"); 852 TRACE_DEBUG(FULL, "RADIUS message ready for sending:");
855 rgw_msg_dump((struct rgw_radius_msg_meta *)*msg); 853 rgw_msg_dump((struct rgw_radius_msg_meta *)*msg);
"Welcome to our mercurial repository"