Skip to content

lm4f: EthernetClient clear cpcb on connect error - #982

Open
ZuratonE wants to merge 2 commits into
energia:masterfrom
ZuratonE:patch-1
Open

lm4f: EthernetClient clear cpcb on connect error#982
ZuratonE wants to merge 2 commits into
energia:masterfrom
ZuratonE:patch-1

Conversation

@ZuratonE

@ZuratonE ZuratonE commented Sep 6, 2017

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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