Skip to content

Commit

Permalink
More talloc_steal() . Should help with #637
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed May 17, 2014
1 parent 884b24f commit a2ca57c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/rlm_eap/types/rlm_eap_peap/peap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ rlm_rcode_t eappeap_process(eap_handler_t *handler, tls_session_t *tls_session)
* tunneled request.
*/
rad_assert(!request->proxy);
request->proxy = fake->packet;
request->proxy = talloc_steal(request, fake->packet);
memset(&request->proxy->src_ipaddr, 0,
sizeof(request->proxy->src_ipaddr));
memset(&request->proxy->dst_ipaddr, 0,
Expand Down
4 changes: 2 additions & 2 deletions src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,9 @@ static int CC_HINT(nonnull) eapttls_postproxy(eap_handler_t *handler, void *data
/*
* Terrible hacks.
*/
request->proxy = fake->packet;
request->proxy = talloc_steal(request, fake->packet);
fake->packet = NULL;
request->proxy_reply = fake->reply;
request->proxy_reply = talloc_steal(request, fake->reply);
fake->reply = NULL;

/*
Expand Down

0 comments on commit a2ca57c

Please sign in to comment.