int i, offset = 0, cipherstringlen = 0;
STACK_OF(SSL_CIPHER) *cipherlist = NULL, *cipherlist_new = NULL;
SSL_CIPHER *cipher;
- char *cipherstring;
+ char *cipherstring = NULL;
SSL_library_init();
OpenSSL_add_all_algorithms();
if (cipherlist_new)
sk_SSL_CIPHER_free(cipherlist_new);
- if (strlen(cipherstring) == 0)
+ if (!cipherstring || !*cipherstring)
Log_fatal("No suitable ciphers found!");
if (SSL_CTX_set_cipher_list(context, cipherstring) == 0)