Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lm4f: EthernetClient clear cpcb on connect error #982

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ZuratonE
Copy link

@ZuratonE ZuratonE commented Sep 6, 2017

patch fixes this situation:

EthernetClient a,b;

a.connect("1.1.1.1",0); //fail, cs->cpcb pointer not cleared
b.connect("google.com",80); //ok
if(a.connected()) a.disconnect(); //spoils b connection

@robertinant
Copy link
Member

TivaC core has bee separated from the IDE and is now located at: https://github.com/energia/tivac-core.

There was indeed an issue here. Although simply assigning NULL to cpcb does not free it. Hence I added a free to it. I will incorporate this into the next release.

@ZuratonE
Copy link
Author

isn't it freed in the irq?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants