summaryrefslogtreecommitdiffstats
path: root/scripts/modules/module_block.py
diff options
context:
space:
mode:
authorDaniel P. Berrange2016-09-30 17:02:01 +0200
committerMichael Tokarev2016-10-08 10:25:29 +0200
commit660a2d83e026496db6b3eaec2256a2cdd6c74de8 (patch)
tree51ca0acda319a2bf24aa7d6ebd44fc02f8d9d52d /scripts/modules/module_block.py
parentCODING_STYLE: Fix a typo ("have" vs. "has") (diff)
downloadqemu-660a2d83e026496db6b3eaec2256a2cdd6c74de8.tar.gz
qemu-660a2d83e026496db6b3eaec2256a2cdd6c74de8.tar.xz
qemu-660a2d83e026496db6b3eaec2256a2cdd6c74de8.zip
char: fix missing return in error path for chardev TLS init
If the qio_channel_tls_new_(server|client) methods fail, we disconnect the client. Unfortunately a missing return means we then go on to try and run the TLS handshake on a NULL I/O channel. This gives predictably segfaulty results. The main way to trigger this is to request a bogus TLS priority string for the TLS credentials. e.g. -object tls-creds-x509,id=tls0,priority=wibble,... Most other ways appear impossible to trigger except perhaps if OOM conditions cause gnutls initialization to fail. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions