455 |
void |
void |
456 |
tempvar_free(Variable *var) |
tempvar_free(Variable *var) |
457 |
{ |
{ |
458 |
if (var->name) |
if (var) { |
459 |
return; /* named variables are not freed */ |
if (var->name) |
460 |
var_free(var); |
return; /* named variables are not freed */ |
461 |
|
var_free(var); |
462 |
|
} |
463 |
} |
} |
464 |
|
|
465 |
void |
void |
467 |
{ |
{ |
468 |
RADIUS_REQ *auth; |
RADIUS_REQ *auth; |
469 |
Variable *p; |
Variable *p; |
470 |
|
VALUE_PAIR *pair; |
471 |
|
|
472 |
if (reply_list) |
if (reply_list) |
473 |
avl_free(reply_list); |
avl_free(reply_list); |
474 |
reply_list = NULL; |
reply_list = NULL; |
475 |
reply_code = 0; |
reply_code = 0; |
476 |
|
|
477 |
if (var->type != Vector) { |
if (var) { |
478 |
parse_error(_("wrong datatype: expected vector")); |
if (var->type != Vector) { |
479 |
return; |
parse_error(_("wrong datatype: expected vector")); |
480 |
} |
return; |
481 |
|
} |
482 |
|
pair = var->datum.vector; |
483 |
|
} else |
484 |
|
pair = NULL; |
485 |
|
|
486 |
if (!cntl) { |
if (!cntl) { |
487 |
auth = rad_clt_send(srv_queue, |
auth = rad_clt_send(srv_queue, port, code, pair); |
|
port, |
|
|
code, var->datum.vector); |
|
488 |
} else { |
} else { |
489 |
int id; |
int id; |
490 |
u_char vector[AUTH_VECTOR_LEN]; |
u_char vector[AUTH_VECTOR_LEN]; |
506 |
auth = rad_clt_send0(srv_queue, |
auth = rad_clt_send0(srv_queue, |
507 |
port, |
port, |
508 |
code, |
code, |
509 |
var->datum.vector, |
pair, |
510 |
0, |
0, |
511 |
&id, |
&id, |
512 |
vector); |
vector); |