Module: wine Branch: master Commit: 9678045056e925022e28224e74c359a9b25d6cd1 URL: https://source.winehq.org/git/wine.git/?a=commit;h=9678045056e925022e28224e7...
Author: Daniel Lehman dlehman25@gmail.com Date: Sun Dec 2 19:49:24 2018 -0800
wininet: Always check if context can be deleted when freeing netconn.
Signed-off-by: Daniel Lehman dlehman25@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wininet/netconnection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c index 4ad2217..615a43c 100644 --- a/dlls/wininet/netconnection.c +++ b/dlls/wininet/netconnection.c @@ -392,9 +392,9 @@ void free_netconn(netconn_t *netconn) heap_free(netconn->extra_buf); netconn->extra_buf = NULL; netconn->extra_len = 0; - if (SecIsValidHandle(&netconn->ssl_ctx)) - DeleteSecurityContext(&netconn->ssl_ctx); } + if (SecIsValidHandle(&netconn->ssl_ctx)) + DeleteSecurityContext(&netconn->ssl_ctx);
close_netconn(netconn); heap_free(netconn);