Ticket #587: ssl_polarssl.c.patch

File ssl_polarssl.c.patch, 417 bytes (added by dogbert2, 6 years ago)

Patch file for ticket #587

  • ssl_polarssl.c

    old new  
    192192  /* Parse allowed ciphers, getting IDs */
    193193  i = 0;
    194194  tmp_ciphers_orig = tmp_ciphers = strdup(ciphers);
    195 
     195  if (NULL == tmp_ciphers) {
     196    msg(M_FATAL, "Unable to allocate memory for ciphers...");
     197    return;
     198  }
    196199  token = strtok (tmp_ciphers, ":");
    197200  while(token)
    198201    {