Changeset 8bd529f in mod_gnutls


Ignore:
Timestamp:
Dec 15, 2007, 8:59:48 AM (15 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, msva, proxy-ticket, upstream
Children:
2b3a248b
Parents:
fc4c1c60
git-author:
Nikos Mavrogiannopoulos <nmav@…> (12/15/07 08:59:48)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (12/15/07 08:59:48)
Message:

print error if preconfiguration fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    rfc4c1c60 r8bd529f  
    7373
    7474    ret = gnutls_global_init();
    75     if (ret < 0) /* FIXME: can we print here? */
    76         exit(ret);
     75    if (ret < 0) /* FIXME: can we print here? */ {
     76        fprintf(stderr, "gnutls_global_init: %s\n", gnutls_strerror(ret));
     77        return -3;
     78    }
    7779
    7880    ret = gnutls_global_init_extra();
    79     if (ret < 0) /* FIXME: can we print here? */
    80         exit(ret);
     81    if (ret < 0) { /* FIXME: can we print here? */
     82        fprintf(stderr, "gnutls_global_init_extra: %s\n", gnutls_strerror(ret));
     83        return -3;
     84    }
    8185                                           
    8286    apr_pool_cleanup_register(pconf, NULL, mgs_cleanup_pre_config,
Note: See TracChangeset for help on using the changeset viewer.