Skip to content

Commit

Permalink
[bugfix]on resume fetch index from async context
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutrazvanionita committed Feb 12, 2016
1 parent 0108065 commit 73f959f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/buildreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ int rc_aaa_async (rc_handle *rh, uint32_t client_port, VALUE_PAIR *send, VALUE_P
/*rc_receive async name*/
int rc_aaa_receive_async(SEND_CONTEXT **ctx, VALUE_PAIR **received, int request_type)
{
int i, j;
int i;
int result;

if (*ctx == NULL) {
Expand All @@ -396,6 +396,7 @@ int rc_aaa_receive_async(SEND_CONTEXT **ctx, VALUE_PAIR **received, int request_
result = rc_receive_async(ctx);

if (result != READBLOCK_RC) {
i = (*ctx)->idx;
(*ctx)->aaaserver->deadtime_ends[i] = -1;
if (request_type != PW_ACCOUNTING_REQUEST) {
*received = (*ctx)->data->receive_pairs;
Expand Down

0 comments on commit 73f959f

Please sign in to comment.