mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
openssl-server: Fix null dereference
Reported by GCC9.
This commit is contained in:
parent
19049d2f28
commit
10660466c1
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ lws_ssl_server_name_cb(SSL *ssl, int *ad, void *arg)
|
|||
servername = SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name);
|
||||
if (!servername) {
|
||||
/* the client doesn't know what hostname it wants */
|
||||
lwsl_info("SNI: Unknown ServerName: %s\n", servername);
|
||||
lwsl_info("SNI: Unknown ServerName\n");
|
||||
|
||||
return SSL_TLSEXT_ERR_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue