Skip to content

Commit

Permalink
Fix assert on error in radclient
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jun 2, 2014
1 parent a02e7d5 commit d6b456b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/radclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ static int radclient_init(TALLOC_CTX *ctx, rc_file_pair_t *files)
ERROR("Out of memory");
goto error;
}
talloc_set_destructor(request, _rc_request_free);

request->packet = rad_alloc(request, 1);
if (!request->packet) {
Expand Down Expand Up @@ -551,6 +550,7 @@ static int radclient_init(TALLOC_CTX *ctx, rc_file_pair_t *files)
}
rc_request_tail = request;
request->next = NULL;
talloc_set_destructor(request, _rc_request_free);

} while (!packets_done); /* loop until the file is done. */

Expand Down

0 comments on commit d6b456b

Please sign in to comment.