Skip to content

Commit 1011e40

Browse files
committed
Fix HTTPS example server to send shutdown.
1 parent c4ca969 commit 1011e40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/https/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int https_server_test(int argc, char** argv)
173173

174174
/* Done - send TLS shutdown message */
175175
if (ssl) {
176-
(void)wolfTlsClose(ssl, ret == 0 ? 1 : 0);
176+
(void)wolfTlsClose(ssl, ret >= 0 ? 1 : 0);
177177
ssl = NULL;
178178
}
179179

0 commit comments

Comments
 (0)