Daniel Lehman : wininet: Always check if context can be deleted when freeing netconn.
Alexandre Julliard
julliard at winehq.org
Mon Dec 3 15:28:54 CST 2018
Module: wine
Branch: master
Commit: 9678045056e925022e28224e74c359a9b25d6cd1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9678045056e925022e28224e74c359a9b25d6cd1
Author: Daniel Lehman <dlehman25 at 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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
More information about the wine-cvs
mailing list