]> code.ossystems Code Review - openembedded-core.git/commit
connman: Fix a crash using wispr over TLS
authorJian Liang <jianliang@tycoint.com>
Fri, 19 Jan 2018 14:42:12 +0000 (14:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Jan 2018 09:55:14 +0000 (09:55 +0000)
commit2ea983d4a187ac62e703e85dce622f70e309be05
treeb3585885180cb0ad3780eecacf6cc593160cff04
parent918754c8e855dea07a49e30b6ff1d3e3dd7530c7
connman: Fix a crash using wispr over TLS

This is happened when doing wispr against a HTTPS URL
rather than the default one, i.e.
http://ipv4.connman.net/online/status.html

When gnutls_channel is instantiated, the gnutls_channel->established
has to be initiated as FALSE. Otherwise, check_handshake function
won't work. A random initial value 1 of gnutls_channel->established
will make check_handshake return G_IO_STATUS_NORMAL, when the channel
is actually not ready to be used. The observed behaviours are,

- wispr is getting random errors in wispr_portal_web_result
- ConnMan crashes on exit after those random errors
- when wispr is luckly working, ConnMan doesn't crash on exit

Signed-off-by: Jian Liang <jianliang@tycoint.com>
Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/connman/connman/0001-giognutls-Fix-a-crash-using-wispr-over-TLS.patch [new file with mode: 0644]
meta/recipes-connectivity/connman/connman_1.35.bb