瀏覽代碼

Initialise CSecurityTLS::cert_cred properly

If we leave it at something random we'll get an invalid delete
if the handshake fails.
tags/v1.9.90
Pierre Ossman 5 年之前
父節點
當前提交
50aaed49b6
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      common/rfb/CSecurityTLS.cxx

+ 1
- 1
common/rfb/CSecurityTLS.cxx 查看文件

@@ -68,7 +68,7 @@ StringParameter CSecurityTLS::X509CRL("X509CRL", "X509 CRL file", "", ConfViewer
static LogWriter vlog("TLS");

CSecurityTLS::CSecurityTLS(bool _anon) : session(0), anon_cred(0),
anon(_anon), fis(0), fos(0)
cert_cred(0), anon(_anon), fis(0), fos(0)
{
cafile = X509CA.getData();
crlfile = X509CRL.getData();

Loading…
取消
儲存