ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/ircd.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/ircd.c (file contents):
Revision 4128 by michael, Mon Jun 30 15:50:11 2014 UTC vs.
Revision 4129 by michael, Tue Jul 1 19:32:19 2014 UTC

# Line 433 | Line 433 | ssl_init(void)
433  
434    if ((ServerInfo.server_ctx = SSL_CTX_new(SSLv23_server_method())) == NULL)
435    {
436 <    const char *s;
436 >    const char *s = ERR_lib_error_string(ERR_get_error());
437  
438 <    fprintf(stderr, "ERROR: Could not initialize the SSL Server context -- %s\n",
439 <            s = ERR_lib_error_string(ERR_get_error()));
438 >    fprintf(stderr, "ERROR: Could not initialize the SSL Server context -- %s\n", s);
439      ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Server context -- %s\n", s);
440    }
441  
# Line 462 | Line 461 | ssl_init(void)
461  
462    if ((ServerInfo.client_ctx = SSL_CTX_new(SSLv23_client_method())) == NULL)
463    {
464 <    const char *s;
464 >    const char *s = ERR_lib_error_string(ERR_get_error());
465  
466 <    fprintf(stderr, "ERROR: Could not initialize the SSL Client context -- %s\n",
468 <            s = ERR_lib_error_string(ERR_get_error()));
466 >    fprintf(stderr, "ERROR: Could not initialize the SSL Client context -- %s\n", s);
467      ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Client context -- %s\n", s);
468    }
469  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)