REQUEST *fixup = NULL;
TALLOC_CTX *ctx;
- if (!request) return;
-
/*
* Set up arrays for editing, to remove some of the
* O(N^2) dependencies. This also makes it easier to
* then don't log the message.
*/
if ((type & L_DBG) &&
- ((request && request->log.func && (lvl <= request->log.lvl)) ||
+ ((request->log.func && (lvl <= request->log.lvl)) ||
((rad_debug_lvl != 0) && (lvl <= rad_debug_lvl)))) {
return true;
}
*out = NULL;
tail = out;
- if (!cs) return 0;
-
/*
* The first map has cs as the parent.
* The rest have the previous map as the parent.
attr = data;
vp = head;
while (vp) {
- len = rad_vp2attr(&my_packet, &my_original, my_secret, (VALUE_PAIR const **)(void **)&vp,
+ VALUE_PAIR **pvp = &vp;
+ VALUE_PAIR const **qvp;
+
+ memcpy(&qvp, &pvp, sizeof(pvp));
+
+ len = rad_vp2attr(&my_packet, &my_original, my_secret, qvp,
attr, data + sizeof(data) - attr);
if (len < 0) {
fprintf(stderr, "Failed encoding %s: %s\n",
}
if (vpt->tmpl_da->flags.is_unknown) {
- if (vpt->tmpl_da != (DICT_ATTR *)&vpt->data.attribute.unknown.da) {
+ if (vpt->tmpl_da != (DICT_ATTR const *)&vpt->data.attribute.unknown.da) {
FR_FAULT_LOG("CONSISTENCY CHECK FAILED %s[%u]: TMPL_TYPE_ATTR "
"da is marked as unknown, but does not point to the template's "
"unknown da buffer", file, line);
BIGNUM *x = NULL, *y = NULL;
char *p;
- if (!handler || ((eap_ds = handler->eap_ds) == NULL) || !inst) return 0;
+ if (((eap_ds = handler->eap_ds) == NULL) || !inst) return 0;
session = (pwd_session_t *)handler->opaque;
request = handler->request;
tDataBuffer *tDataBuff = NULL;
tDirNodeReference nodeRef = 0;
long status = eDSNoErr;
- char *what = NULL;
+ char const *what = NULL;
char *status_name = NULL;
tContextData context = 0;
uint32_t nodeCount = 0;
tDataList *pRecType = NULL;
tDataList *pAttrType = NULL;
uint32_t recCount = 0;
- tRecordEntry *pRecEntry = NULL;
+ tRecordEntry *pRecEntry = NULL;
tAttributeListRef attrListRef = 0;
- char *pUserLocation = NULL;
+ char *pUserLocation = NULL;
tAttributeValueListRef valueRef = 0;
tDataList *pUserNode = NULL;
rlm_rcode_t result = RLM_MODULE_FAIL;